779 Commits
Author SHA1 Message Date
Mr.doob 89079b91f4 Fixed mouse listeners on draggable cubes example, also reverted to previous aesthetic (sorry @alteredq). 2011-09-04 12:35:14 +02:00
alteredq aac91430d9 Tweaked shadows in draggable cubes example. 2011-09-04 05:00:54 +02:00
Mr.doob 48eb624d59 Fixed behaviour glitch on draggable cubes example. 2011-09-04 02:14:47 +02:00
Mr.doob a0c6e077ef Added shadows to the draggable cubes example (@spite's suggestion). 2011-09-04 01:49:04 +02:00
Mr.doob 1bdf3daec9 Improved draggable cubes example a bit more. 2011-09-04 01:19:11 +02:00
Mr.doob 4ed370e362 Improved draggable cubes example. 2011-09-04 01:14:16 +02:00
Mr.doob 51368ca6d6 REVISION ++ 2011-09-04 00:47:01 +02:00
Mr.doob b5dfd828d0 Added draggable cubes example. 2011-09-03 23:24:30 +02:00
alteredq ca05c86fc5 Removed surprising bottleneck in WebGLRenderer.
I knew for loops iterating over properties were slower than numerical for loops but I didn't realize how bad it was.

Gained about 10 fps in performance test, and that was for for loop iterating over single property.

Also fixed broken examples with postprocessing.
2011-09-03 00:11:29 +02:00
alteredq 75952217a2 Added frustumCulled flag to Object3D. 2011-09-02 22:37:38 +02:00
Mr.doob 6e37afcd11 WebGL materials example: Additive material was missing the transparent: true. 2011-09-02 15:18:20 +02:00
alteredq 5d898fa2f0 Merge remote-tracking branch 'remotes/mrdoob/dev' into dev 2011-09-02 13:41:57 +02:00
alteredq 0bd23ca973 Added scene override material to RenderPass. Added mipmapped depth-of-field shader. 2011-09-02 13:40:31 +02:00
Mr.doob a22bba1156 Merge remote-tracking branch 'zz85/experimental' into dev 2011-09-01 19:14:30 +02:00
alteredq 5a87757b1b Merge remote-tracking branch 'remotes/mrdoob/dev' into dev 2011-09-01 17:56:43 +02:00
alteredq 59bfd81150 Added MaskPass to postprocessing and clearTarget to WebGLRenderer.
Masking was real pain to get working with multiple render targets :/.

Unfortunately this introduced dependencies on MaskPass.js and ShaderPass.js even for use cases that do not use masking. Bah, will need to figure out some better way for deployment.
2011-09-01 17:41:56 +02:00
Mr.doob 1be08e8afe WebGLRenderer: Added deallocateObject and deallocateTexture methods. 2011-09-01 17:18:02 +02:00
alteredq 20fae814e7 Refactored postprocessing to use double buffering.
Cause everywhere there are warnings about not writing to the same texture which is also being read. Curiously enough this didn't make problems so far (save for mysterious lines when doing "heat" effect in ro.me).
2011-09-01 00:19:31 +02:00
alteredq 1cbcc5beab Optimized postprocessing example.
No need to use full-screen render targets for quarter-screen images (still keeping big one for geometry pass to emulate antialiasing).

Also added check for existence of normalMatrix in shader when setting uniforms in WebGLRenderer. Null was being sent to GPU for materials that don't use normals (e.g particles).
2011-08-31 15:55:58 +02:00
alteredq 058f86f6ab Moved focus shader out of dynamic particles example into ShaderExtras.
Also updated dynamic particles example to handle resizing.
2011-08-31 15:04:38 +02:00
alteredq f6fa60700e Fixed texture filtering example.
There was z-fighting and obsolete UVs hacking.
2011-08-31 14:03:31 +02:00
alteredq 918f36cfa0 Fixed broken shaders example. 2011-08-31 13:50:13 +02:00
alteredq 743363b5b5 Updated video and dynamic particles examples to use new postprocessing system. 2011-08-31 13:38:05 +02:00
alteredq 797530e4f7 Moved 2d filter shaders from ShaderUtils to ShaderExtras. 2011-08-31 13:16:49 +02:00
alteredq 10e12a8305 Added generic ShaderPass. Removed SepiaPass, ScreenPass, VignettePass. Added bleachbypass shader. Simplified multi-composer pipeline in postprocessing example. 2011-08-31 01:06:26 +02:00
alteredq beeac6bc08 Updated text example to use new postprocessing system. 2011-08-30 21:44:32 +02:00
alteredq 3a5d02cc39 Added vignette shader / effect. Updated postprocessing example. 2011-08-30 18:59:00 +02:00
alteredq 093bbb1cb9 Added dot screen shader / effect. Extended postprocessing demo. Fixed viewport bug for render targets. 2011-08-30 16:48:47 +02:00
alteredq 32f0f884bd Added sepia shader / effect. 2011-08-30 12:38:32 +02:00
alteredq 771787a49b Merge remote-tracking branch 'remotes/mrdoob/dev' into dev 2011-08-29 23:37:50 +02:00
alteredq ff09a492bb Refactored postprocessing out of examples into own set of classes.
Not sure yet about names and location of files.
2011-08-29 23:35:36 +02:00
Mr.doob 26c9c18e66 Fixed lost webgl_rtt changes in the merge. 2011-08-29 14:36:28 +02:00
Mr.doob 7fd7c2dff5 Merging with @alteredq's dev. 2011-08-29 14:33:34 +02:00
Mr.doob 717e414801 Examples that used Torus_bin now use TorusGeometry. 2011-08-29 14:31:43 +02:00
alteredq 495de75ff2 Added OrthoCamera.
Modified examples to use it, hacking projection matrix started to feel a bit dirty.
2011-08-29 10:34:18 +02:00
zz85 1b8c878cc5 Fixed Canvas Particle artifacts 2011-08-29 11:21:25 +08:00
Mr.doob 7c7d4428f2 Moved src/materials/Mappings.js inside src/materials/Texture.js
Moved `src/materials/*Texture.js` to `src/textures/*Texture.js`
2011-08-29 05:18:25 +02:00
Mr.doob 45fa8fff48 Ray.js: Now ignores objects behind origin and also faces behind origin (using the centroid). 2011-08-29 03:55:45 +02:00
zz85 9ff5e00610 New Canvas & Particles Emitter Example 2011-08-29 00:54:28 +08:00
Mr.doob 8fd041508f extras/io > extras/loaders
extras/collada/dae.js > extras/loaders/ColladaLoader.js

removed LoaderOld.js
2011-08-26 23:44:47 +02:00
Mr.doob ee80c958a1 TorusGeometry: Proper vertex and face normal calculation.
Some clean up on Vector* constructors.
Added UV::clone.
2011-08-26 23:33:13 +02:00
alteredq 4336d757ac Added WebGLRenderTargetCube.
Work-in-progress.
2011-08-26 19:40:56 +02:00
alteredq 674a7c0765 Made COLLADA example animation shorter to have single run cycle.
It's not perfect, tail is not really looping, but at least there is not big jump for the rest of the body.
2011-08-24 22:26:40 +02:00
Mr.doob e7d81652ae Merge remote-tracking branch 'alteredq/dev' into dev 2011-08-24 11:40:14 +02:00
Mr.doob a1a54764b5 Merge remote-tracking branch 'timknip/master' into dev 2011-08-24 11:40:06 +02:00
alteredq f45a70896b Added heuristics to text example for long side faces to use flat shading.
Also enabled antialiasing and disabled default postprocessing.
2011-08-24 05:46:16 +02:00
alteredq 76b8032e1a Updated text example with normals hack to be able to use smooth shading also for unbeveled geometry. 2011-08-24 04:37:34 +02:00
timk 3a7bc294d7 hmm 2011-08-23 22:01:18 +02:00
alteredq d60dc516a0 Updated TextGeometry example to have smooth shading for beveled text. 2011-08-22 17:25:05 +02:00
Mr.doob 4575d80254 Merging with @timknip2's master 2011-08-22 16:09:48 +02:00