Commit Graph
831 Commits
Author SHA1 Message Date
zz85 c2e0d05ec6 Playing around with UVs 2011-09-30 01:26:08 +08:00
zz85 8edfa99583 Rename SubdivisonGeometry.js to SubdivisionGeometry.js. Fix geometries which use duplicate vertices. SubdivisionGeometry tested with Cube/Sphere/Cylinder/TextGeometry 2011-09-29 17:15:41 +08:00
zz85 670ebf6139 Fixed SubdivsionGeometry points. Added class, update builds 2011-09-29 04:38:56 +08:00
zz85 ea634d0ff1 initial subdivision geometry - needs debuggin and more testings 2011-09-29 04:04:27 +08:00
alteredq ba75a48a2b Optimized uniforms updates.
Should not refresh anything if material doesn't change for several objects in a row (in a single frame).

Hope this didn't break something, I remember this being tricky. Went through examples and they seem to work ok, gained some fps in performance test.

Also disabled sorting in depth-of-field example for some more fps gain.

Still didn't figure out the original reason for recent fps drop in performance / dof examples :/
2011-09-26 15:55:05 +02:00
alteredq db78ffe003 Some more Math.PI instead of magic numbers. 2011-09-25 20:19:08 +02:00
alteredq 7e937ebe69 Merge remote-tracking branch 'remotes/mrdoob/dev' into dev 2011-09-25 18:55:32 +02:00
alteredq 9e39966076 Added ability to disable render passes to EffectComposer. Added simple blend shader to ShaderExtras. 2011-09-25 18:54:30 +02:00
Mr.doob dd31b37211 Merge remote-tracking branch 'pyrotechnick/dev' into dev 2011-09-24 13:44:28 -07:00
alteredq 84a7c304a6 Fixed specular lighting also in normal map shader. 2011-09-24 11:51:12 +02:00
alteredq 8bd87ff444 Rewritten lighting shaders.
Hopefully this fixes several problems:

- ambient component not modulated by scene ambient light
- specular component not getting light colors
- unnecessary opacity use in lighting calculations
- unnecessary vertex shader light computation for Phong
- unnecessary use of one varying in Phong
2011-09-24 10:45:57 +02:00
Nicholas Kinsey ce2e019e2d Optimising array operations in webgl_lines_*.html 2011-09-24 15:48:55 +10:00
alteredq bbdef72e69 Added simple tilt-shift effect to ShaderExtras. 2011-09-24 02:40:14 +02:00
alteredq fd0fb85c8e Fixed specular light vs black texture bug in Phong shader. 2011-09-21 20:47:57 +02:00
alteredq 631a5d697c Changed remaining "addXXX" to "add".
Hopefully no more deprecation warnings.
2011-09-21 05:52:59 +02:00
alteredq fa0b4e5062 Removed unused custom logging code from examples.
This was relic from before "console.log" was working cross-browser.
2011-09-21 05:37:48 +02:00
Mr.doob bbb65a768c Updated HTML of the rest of the examples. 2011-09-20 19:27:01 -07:00
Mr.doob 19d8261174 More examples clean up. 2011-09-20 18:31:13 -07:00
Mr.doob 17547a2ea0 Changed addChild()s to add()s in ColladaLoader.
Cleaned up some more examples.
2011-09-20 17:54:57 -07:00
Mr.doob 71c2df1649 Updated HTML of some examples. 2011-09-20 15:59:12 -07:00
alteredq d2a3122be1 Fixed Sprites to use "object.visible" 2011-09-20 22:18:47 +02:00
alteredq 44c5f88e77 Updated builds. Fixed Collada example. 2011-09-19 22:58:16 +02:00
alteredq d4b2e4a8e0 Added color parameter to Sprite.
Also removed unused material Sprite parameter.
2011-09-17 00:36:44 +02:00
alteredq 0d8f3572f0 Fixed shadowmap camera aspect ratio (thanks to @kig). 2011-09-16 00:10:34 +02:00
Mr.doob dd1f214947 @zz85's SimplexNoise fixes. 2011-09-13 15:15:36 -07:00
alteredq e298ac6814 Renamed MeshShaderMaterial => ShaderMaterial 2011-09-12 19:17:20 +02:00
alteredq 3e04cf18dc Normalized Gaussian blur coefficients.
Also shortened a life cycle for particles in shapes example. Still it gets about 10 fps slower with time :/
2011-09-09 21:08:29 +02:00
alteredq 898e528e5d Merge remote-tracking branch 'remotes/zz85/master' into dev 2011-09-09 20:59:44 +02:00
alteredq fcf4fe34f6 Small optimization of skin rendering demo.
No need to computer Beckmann texture every frame, once is enough.
2011-09-09 20:40:25 +02:00
alteredq 78521fad95 Added renderer.getClearAlpha. Extended RenderPass to be able to use custom alpha clear. Fixed UVs in UTF8Loader. 2011-09-09 19:57:13 +02:00
zz85 178dc964b5 fixed horizontalBlur and verticalBlur shaders 2011-09-09 22:02:33 +08:00
alteredq 94b14c1e3a Cleaned up a bit 9-sample Gaussian blur shader. 2011-09-08 18:26:59 +02:00
alteredq 20648b2053 Merge remote-tracking branch 'remotes/zz85/experimental' into dev 2011-09-08 18:00:24 +02:00
alteredq a79cc6797c Fixed broken skin example.
Committed deployment version by mistake.
2011-09-08 16:39:23 +02:00
zz85 1ecbe6035b Experimenting with more blur filters 2011-09-08 22:38:38 +08:00
alteredq d228fb0c4a Added physically based specular term to skin shader. 2011-09-08 02:18:50 +02:00
alteredq 245dbfcc2a Changed renderer.getClearColor API to return reference. 2011-09-07 23:25:06 +02:00
Mr.doob c543ba6540 GeometryUtils.applyMatrix -> Geometry.applyMatrix 2011-09-07 18:52:11 +02:00
alteredq 93468b0094 Merge remote-tracking branch 'remotes/mrdoob/dev' into dev 2011-09-07 16:58:30 +02:00
alteredq 0959969fc3 Added skin rendering example plus some postprocessing fixes to make it work. 2011-09-07 16:39:20 +02:00
Mr.doob d3a5649759 Added GeometryUtils.applyMatrix so we can easily manipulate geometry \:D/
Fixed GeometryUtils.merge (normals and centroids weren't being multiplied)
Fixed misc_lookat and misc_ubiquity_test examples.
2011-09-06 16:58:16 +02:00
Mr.doob 5002a403c5 Updated some cubemap examples code. 2011-09-06 14:20:18 +02:00
alteredq fe83a3f052 Rebuilt libs. 2011-09-06 01:08:27 +02:00
alteredq 8c326a222f Moved depth buffer writing control from renderer into material.
This allows, for example, better integration of additively blended materials with a regular scene.

Not to be confused with depthTest (which controls complete access to depth buffer, including reading).

Also messed up a bit with particle emitter example.
2011-09-06 00:58:55 +02:00
Mr.doob cd760abfba Updated ubiquity test example with new CylingerGeometry. 2011-09-06 00:06:29 +02:00
Mr.doob a940f05427 Updated examples with the new .add/.remove methods. 2011-09-05 23:16:56 +02:00
Mr.doob 6141390dab Simplified CylinderGeometry params. 2011-09-05 22:28:49 +02:00
Mr.doob f849f34b1e Redid CylinderGeometry.
Simplified `Trident`.
Added `setX`, `setY`, `setZ` methods to `Vector3`. They're handy for oneliners (see `CylinderGeometry`).
2011-09-05 22:16:47 +02:00
alteredq 414d91420c Merge remote-tracking branch 'remotes/zz85/experimental' into dev 2011-09-05 16:00:09 +02:00
zz85 e123cf2f5f Added webgl particle emitter with blur postprocessing example 2011-09-05 13:16:16 +08:00