Commit Graph

  • ecdbb2ef91 Fixed broken uniforms cloning. Fixed broken uqbiquity test. alteredq 2010-12-28 14:33:52 +01:00
  • 513563117b Added method setClearColor( color, opacity ) to CanvasRenderer. Mr.doob 2010-12-28 01:18:43 +00:00
  • 42fa72eca7 Updated README with new WebGL demos. Mr.doob 2010-12-27 20:06:23 +00:00
  • 674613a7ab Yet some minor tweaks to the normalmap2 demo. Mr.doob 2010-12-27 01:26:08 +00:00
  • 3488a53798 Recompiled builds. Re-tweaked normalmap2 demo. Mr.doob 2010-12-27 01:22:48 +00:00
  • 385ce31b00 Merge remote branch 'alteredq/master' Mr.doob 2010-12-27 01:18:00 +00:00
  • ebaa3ae392 I knew it wasn't going to work. Mr.doob 2010-12-27 01:17:52 +00:00
  • 7e1321d084 Trying to avoid merge conflicts... I'm sure it's not going to work... Mr.doob 2010-12-27 01:16:14 +00:00
  • b5ac3abbb6 Fixed tangents generation for quads. alteredq 2010-12-27 02:11:19 +01:00
  • 897a2938c5 Merged with alteredq's normal shader improvements. Tweaked normalmap2 demo parameters. Mr.doob 2010-12-27 01:08:29 +00:00
  • 4a486f858a Added uNormalScale to normal shader. Updated normalmap2 demo inverting the X/Y components. Mr.doob 2010-12-26 23:54:35 +00:00
  • 46041d3650 Removed vertex lighting from normal mapping shader. alteredq 2010-12-27 00:28:01 +01:00
  • 1722242ee1 Added cloning of uniforms for MeshShaderMaterial & co. alteredq 2010-12-26 19:03:24 +01:00
  • fb7788f0c6 Resurrected exponential fog as FogExp2. alteredq 2010-12-26 04:11:35 +01:00
  • 6e91de5d8a Added diffuse map to normal map shader. Changed Lee Perry-Smith demo to use normal map shader. alteredq 2010-12-26 03:03:28 +01:00
  • 03c5f0f859 Improving fog effect :) Mr.doob 2010-12-25 23:27:39 +00:00
  • 91b9539e02 Synced with mrdoob's branch. alteredq 2010-12-25 23:08:57 +01:00
  • 255c042b1e Added clear color parameter to WebGLRenderer constructor, also added setClearColor API call. alteredq 2010-12-25 22:32:26 +01:00
  • b086c2c5af That demo wasn't supposed to go in... Mr.doob 2010-12-25 20:36:00 +00:00
  • 3993d3d576 Added Lee Perry-Smith Normal-notyet-Map demo. Mr.doob 2010-12-25 20:35:07 +00:00
  • 93fa1df174 Added Lee Perry-Smith Normal-notyet-Map demo. Mr.doob 2010-12-25 20:32:13 +00:00
  • e46346c9ba Cleaned up CanvasRenderer/MeshDepthMaterial code. Moved near/far values from MeshDepthMaterial to Camera (CanvasRenderer/WebGLRenderer/WebGLRenderer2). Mr.doob 2010-12-25 18:14:10 +00:00
  • 0c3e69ccda WebGLRenderer2: Added env_map (SphericalReflectionMapping). Mr.doob 2010-12-25 16:03:07 +00:00
  • fbf26158fb Fog( color, density )Fog( color, near, far ) Mr.doob 2010-12-24 22:15:45 +00:00
  • bffdc03cf1 *.material*.materials Mr.doob 2010-12-24 21:24:58 +00:00
  • 309fffe98f Added fog parameter (boolean, true by default) to common materials. Cleaned up shader snippets in WebGLRenderer2. Mr.doob 2010-12-24 16:27:46 +00:00
  • e89a1de8c2 Merge remote branch 'alteredq/master' Mr.doob 2010-12-24 06:23:27 +00:00
  • f2b21b5bf1 WebGLRenderer2: Added antialias parameter to constructor. Removed if from shader, using fog * instead. Mr.doob 2010-12-24 06:23:15 +00:00
  • 323228ac72 Added antialiasing parameter to WebGLRenderer constructor. alteredq 2010-12-23 22:23:56 +01:00
  • 93d5529872 Added Terrain + Fog demo. WebGLRenderer2: Fixed a possible issue when modifying scene parameters and having only one program (thx alteredq) Mr.doob 2010-12-22 15:48:18 +00:00
  • b7c78635cf Added Fog to WebGLRenderer2. Mr.doob 2010-12-21 15:19:43 +00:00
  • c39eca33ee Projector::projectScene now does a first pass through Projector::projectObject (which does frustum culling and object sorting). So now CanvasRenderer and SVGRenderer feature frustum culling too. Mr.doob 2010-12-21 14:07:23 +00:00
  • 2c1e6a1368 Forgot to remove hardcoded fog color in shader. alteredq 2010-12-21 01:38:39 +01:00
  • 76a56f2f5c First attempt at fog ;) alteredq 2010-12-21 01:22:44 +01:00
  • ffd0b40c4f Merge remote branch 'alteredq/master' Mr.doob 2010-12-20 22:16:12 +00:00
  • 02f81a26f4 Merging with alteredq's branch. Mr.doob 2010-12-20 22:16:04 +00:00
  • 17c1349d55 Starting to prepare stuff for adding Fog. Having Fog.js inside /scenes doesn't sound right, but I guess it can be there for now... The idea would be to do scene.fog = new THREE.Fog( color, near, far ); This way seems consistent with the rest of the API. By default scene.fog is null. Mr.doob 2010-12-20 22:15:22 +00:00
  • f02a5582f6 Moved normal and depth materials out of ubershader. alteredq 2010-12-20 22:03:03 +01:00
  • 1d8fae82eb Added MeshDepthMaterial to WebGLRenderer2. Mr.doob 2010-12-20 16:21:19 +00:00
  • 5e2c480b89 Implemented Frustum checking to Projector::projectObjects (thanks errynp) Added boundingBox, boundingSphere and computeBoundingSphere to Geometry. Mr.doob 2010-12-20 00:28:31 +00:00
  • c13377d736 Added crappy grass WebGL example. Added sortElements boolean (true by default) to CanvasRenderer and SVGRenderer. Also added sortObjects boolean but not being used yet. Mr.doob 2010-12-19 20:07:08 +00:00
  • a648315604 WebGLRenderer2 finally handles big geometries ^^ Projector sort boolean is now required (CanvasRenderer and SVGRenderer updated). Mr.doob 2010-12-18 22:57:58 +00:00
  • 5e74c741c1 Retired MeshCubeMaterial: replaced it with MeshShaderMaterial "cube" defined in ShaderUtils. alteredq 2010-12-18 02:48:59 +01:00
  • 3faf6566e3 Experimenting with Fresnel demo using just MeshShaderMaterials. alteredq 2010-12-18 01:56:12 +01:00
  • d14ed35ae5 Synced with mrdoob's branch. alteredq 2010-12-18 01:39:51 +01:00
  • 2163691b59 Fixed subtle yet brutal bug also known as "don't mess with streams" ;) alteredq 2010-12-18 01:32:54 +01:00
  • 15262507bd Added a sort parameter to Projector.projectObjects and Projector.projectScene. Mr.doob 2010-12-17 22:27:18 +00:00
  • 3b54505959 Synced with mrdoob's branch. alteredq 2010-12-17 22:02:46 +01:00
  • fca3aec67d Fixed Projector::projectObjects. Mr.doob 2010-12-17 19:49:23 +00:00
  • 3b54cf7918 Projector now checks for object.visible before projecting (alteredq: better late than never :P) WebGLRenderer2 now uses Projector too (projecting objects + sorting, to slightly avoid transparency sorting glitches). Mr.doob 2010-12-17 11:05:53 +00:00
  • 39c7e8da57 Synced with mrdoob's branch. alteredq 2010-12-17 00:39:02 +01:00
  • 9f668deab5 Cube.js: Forgot to uncomment mergeVertices. Mr.doob 2010-12-16 19:13:46 +00:00
  • 027e8c69e7 Cube.js: Fixed a bug iregular sizes. Mr.doob 2010-12-16 19:10:57 +00:00
  • f50f42dde1 Commented out Mesh::normalizeUVs. Needs to be handled in the CanvasRenderer directly. Added a check in Scene to make sure the avoid duplicate objects. WebGLRenderer2: In the process of handling > 65535 Mr.doob 2010-12-15 14:36:42 +00:00
  • 5e9bce8385 Synced with mrdoob's branch. alteredq 2010-12-14 14:12:36 +01:00
  • 5f0b6876e6 Optimised Minecraft AO demo (removing more unseen sides). Made 0xffffff the default color on all materials (0xeeeeee was making the AO a bit darker). Mr.doob 2010-12-14 10:39:48 +00:00
  • 8e53294e62 Synced with mrdoob's branch. alteredq 2010-12-14 02:35:23 +01:00
  • 044a98c8ce Added WASD + strafing to minecraft AO demo. alteredq 2010-12-14 00:51:01 +01:00
  • 45f47b89b7 Added minecraft fake ambient occlusion demo. alteredq 2010-12-14 00:17:53 +01:00
  • 4225330065 WebGLRenderer2: Added textures Mr.doob 2010-12-13 10:36:38 +00:00
  • 8d2096c7bd WebGLRendere2: Switched to the normalToComponent formula the CanvasRenderer uses. Mr.doob 2010-12-13 09:13:53 +00:00
  • 3af0b0fd16 WebGLRenderer2: Added MeshNormalMaterial. Moved mColor * mOpacity computation to the shader. Mr.doob 2010-12-13 09:08:04 +00:00
  • d3a56f3f35 Yet again that misterious behaviour where stuff gets pasted in weird places. Long time without experiencing it... Mr.doob 2010-12-12 21:42:08 +00:00
  • b84bca3bb0 WebGLRenderer optimisation: flattening camera matrices just once per render, it was doing it once per object before. WebGLRenderer2: Trying to re-create WebGLRenderer from scratch... Creating a program per material instead of just one for everything. Seems to be 3x faster by now... Mr.doob 2010-12-12 21:22:25 +00:00
  • 94d01d8ca2 Merge remote branch 'alteredq/master' Mr.doob 2010-12-12 17:00:29 +00:00
  • aa1ccd185f Messing with ShaderUtils. Mr.doob 2010-12-12 17:00:19 +00:00
  • 0c1851393d Added check for normals in shader when rendering VBOs. alteredq 2010-12-12 16:52:50 +01:00
  • bf495aa486 Yet another geometry optimisation to the minecraft demo. Added lights_pointlight_smooth example. To be used for tracking browser improvements affecting that technique. Mr.doob 2010-12-12 09:35:00 +00:00
  • 9e5017a2ed Another minecraft demo optimization: creating only one material per unique texture. alteredq 2010-12-10 19:08:27 +01:00
  • feb349a794 Synced with mrdoob's branch. alteredq 2010-12-10 16:02:38 +01:00
  • e3c9b9d045 Optimized minecraft demo: removed rest of unseen faces. alteredq 2010-12-10 15:59:25 +01:00
  • c0055eec7a Synced with mrdoob's branch. alteredq 2010-12-10 13:14:15 +01:00
  • e3fd761786 Optimised CanvasRenderer::getGradientTexture. Mr.doob 2010-12-10 12:13:13 +00:00
  • 8a31cd8d98 Implemented gero3 normalToComponent optimisation. Mr.doob 2010-12-10 11:45:14 +00:00
  • e85a0605e8 Updated build. Mr.doob 2010-12-10 11:06:19 +00:00
  • 47c61815ee Merge remote branch 'fabricasapiens/master' Mr.doob 2010-12-10 11:05:00 +00:00
  • 2a8abb5531 Implemented gero3 Rectangle optimisations. Mr.doob 2010-12-10 11:04:51 +00:00
  • bb3ce971cb Updated multiplySelf() to make it 20% faster. Fabrica Sapiens 2010-12-10 02:46:52 -08:00
  • 5b0714c370 Updated build. Mr.doob 2010-12-09 17:26:23 +00:00
  • 5fc7b02d25 removing references to camera global pyrotechnick 2010-12-09 09:02:19 -08:00
  • 389b74f9fc Updated builds. Mr.doob 2010-12-09 13:35:25 +00:00
  • cee1d4832f Merge remote branch 'alteredq/master' Mr.doob 2010-12-09 13:33:36 +00:00
  • e538e30a2a Adding alteredq's builds (crappy way to merge I know, but works). Mr.doob 2010-12-09 13:33:29 +00:00
  • 7aeaa8c663 Added translateX( amount ) and translateZ( amount ) to Camera. Mr.doob 2010-12-09 12:37:57 +00:00
  • ac5276b41f Added normal + ambient occlusion + displacement mapping demo. alteredq 2010-12-09 12:27:49 +01:00
  • 01ffc10ea3 webgl terrain demo look slightly improved. Mr.doob 2010-12-09 09:17:54 +00:00
  • b13b9164b7 THREE.Matrix4()THREE.Matrix4( n11, n12, n13, n14, n21, n22, n23, n24, n31, n32, n33, n34, n41, n42, n43, n44 ) Mr.doob 2010-12-09 08:02:21 +00:00
  • 10e21dde88 Geometry::computeNormalsGeometry::computeFaceNormals Mr.doob 2010-12-08 15:59:10 +00:00
  • 1da8ee0df9 Added vec3 and color parameters for MeshShaderMaterial. Also moved normal and view matrices into default parameters. alteredq 2010-12-08 12:30:33 +01:00
  • 1053ab2444 Made WebGL terrain demo work in Firefox 4. alteredq 2010-12-07 19:50:40 +01:00
  • 4290307b48 Optimised WebGL terrain demo. Mr.doob 2010-12-07 13:33:20 +00:00
  • 3f7ed6f939 Right ⇆ Left Mr.doob 2010-12-07 12:43:11 +00:00
  • 2dcbde4d69 Added webgl terrain example. Mr.doob 2010-12-07 09:13:32 +00:00
  • c8ee1c5dc2 Merge remote branch 'remotes/upstream/master' alteredq 2010-12-06 16:00:53 +01:00
  • 52ef987a79 Small optimization to Minecraft demo: not drawing bottom faces. alteredq 2010-12-06 15:58:55 +01:00
  • e829542744 Restored the correct illumination for the Minecraft demo. Mr.doob 2010-12-06 14:30:59 +00:00
  • 1f50c67942 Merge remote branch 'alteredq/master' Mr.doob 2010-12-06 14:25:27 +00:00
  • a0e29d1c67 Oops, texture pack attribution got lost in merge. alteredq 2010-12-06 14:58:31 +01:00
  • 89cd9198dd Fixed a subtle bug in texture parameters (with missing mapping, all other parameters were shifted). alteredq 2010-12-06 14:51:15 +01:00
  • 4cfa921d9d Merge remote branch 'alteredq/master' Mr.doob 2010-12-06 13:28:43 +00:00