Mr.doob
8d2096c7bd
WebGLRendere2:
...
Switched to the normalToComponent formula the CanvasRenderer uses.
2010-12-13 09:13:53 +00:00
Mr.doob
3af0b0fd16
WebGLRenderer2:
...
Added MeshNormalMaterial.
Moved mColor * mOpacity computation to the shader.
2010-12-13 09:08:04 +00:00
Mr.doob
d3a56f3f35
Yet again that misterious behaviour where stuff gets pasted in weird places. Long time without experiencing it...
2010-12-12 21:42:08 +00:00
Mr.doob
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...
2010-12-12 21:22:25 +00:00
Mr.doob
94d01d8ca2
Merge remote branch 'alteredq/master'
2010-12-12 17:00:29 +00:00
Mr.doob
aa1ccd185f
Messing with ShaderUtils.
2010-12-12 17:00:19 +00:00
alteredq
0c1851393d
Added check for normals in shader when rendering VBOs.
2010-12-12 16:52:50 +01:00
Mr.doob
bf495aa486
Yet another geometry optimisation to the minecraft demo.
...
Added `lights_pointlight_smooth` example. To be used for tracking browser improvements affecting that technique.
2010-12-12 09:35:00 +00:00
alteredq
9e5017a2ed
Another minecraft demo optimization: creating only one material per unique texture.
...
This also reduces number of VBOs. There aren't many of them anyways, but it's always nice to have less ;)
2010-12-10 19:08:27 +01:00
alteredq
feb349a794
Synced with mrdoob's branch.
2010-12-10 16:02:38 +01:00
alteredq
e3c9b9d045
Optimized minecraft demo: removed rest of unseen faces.
...
It did seem to help quite a bit ;)
2010-12-10 15:59:25 +01:00
alteredq
c0055eec7a
Synced with mrdoob's branch.
2010-12-10 13:14:15 +01:00
Mr.doob
e3fd761786
Optimised CanvasRenderer::getGradientTexture.
2010-12-10 12:13:13 +00:00
Mr.doob
8a31cd8d98
Implemented gero3 normalToComponent optimisation.
2010-12-10 11:45:14 +00:00
Mr.doob
e85a0605e8
Updated build.
2010-12-10 11:06:19 +00:00
Mr.doob
47c61815ee
Merge remote branch 'fabricasapiens/master'
2010-12-10 11:05:00 +00:00
Mr.doob
2a8abb5531
Implemented gero3 Rectangle optimisations.
2010-12-10 11:04:51 +00:00
Fabrica Sapiens
bb3ce971cb
Updated multiplySelf() to make it 20% faster.
2010-12-10 02:46:52 -08:00
Mr.doob
5b0714c370
Updated build.
2010-12-09 17:26:23 +00:00
pyrotechnick
5fc7b02d25
removing references to camera global
...
replacing with `this`
2010-12-09 09:02:19 -08:00
Mr.doob
389b74f9fc
Updated builds.
2010-12-09 13:35:25 +00:00
Mr.doob
cee1d4832f
Merge remote branch 'alteredq/master'
2010-12-09 13:33:36 +00:00
Mr.doob
e538e30a2a
Adding alteredq's builds (crappy way to merge I know, but works).
2010-12-09 13:33:29 +00:00
Mr.doob
7aeaa8c663
Added translateX( amount ) and translateZ( amount ) to Camera.
2010-12-09 12:37:57 +00:00
alteredq
ac5276b41f
Added normal + ambient occlusion + displacement mapping demo.
...
A lot of things going on in this commit:
- added tangents computation for geometries
- mesh must have UV coordinates
- to be called explicitly once geometry is loaded like this: geometry.computeTangents()
- tangents are stored in Vertex objects
- quads are not solved properly (though workaround hack seems to work at least somehow, as far as each vertex appears at least somewhere)
- extended VBOs in WebGLRenderer to include tangent streams (when available)
- added "normal" shader to ShaderUtils (to be used with MeshShaderMaterial)
- Blinn-Phong with one directional and one point light (7 varyings gone, just one spare)
- normal maps are in tangent space
- displacement maps use simple luminance value (could be changed if better precision is needed)
- displacement mapping uses vertex texture fetch
- this requires GPU with Shader Model 3.0
- not currently supported in ANGLE
- for this, added "supportsVertexTextures" method to WebGLRenderer API, so that application can handle this
2010-12-09 12:27:49 +01:00
Mr.doob
01ffc10ea3
webgl terrain demo look slightly improved.
2010-12-09 09:17:54 +00:00
Mr.doob
b13b9164b7
THREE.Matrix4() → THREE.Matrix4( n11, n12, n13, n14, n21, n22, n23, n24, n31, n32, n33, n34, n41, n42, n43, n44 )
2010-12-09 08:02:21 +00:00
Mr.doob
10e21dde88
Geometry::computeNormals → Geometry::computeFaceNormals
2010-12-08 15:59:10 +00:00
alteredq
1da8ee0df9
Added vec3 and color parameters for MeshShaderMaterial. Also moved normal and view matrices into default parameters.
2010-12-08 12:30:33 +01:00
alteredq
1053ab2444
Made WebGL terrain demo work in Firefox 4.
...
Firefox doesn't like Typed Array constructors without explicit sizes.
Also in Firefox there were some weird artefacts in Perlin noise when using Int8Array (patterns were repeated across diagonal lines).
2010-12-07 19:50:40 +01:00
Mr.doob
4290307b48
Optimised WebGL terrain demo.
2010-12-07 13:33:20 +00:00
Mr.doob
3f7ed6f939
Right ⇆ Left
2010-12-07 12:43:11 +00:00
Mr.doob
2dcbde4d69
Added webgl terrain example.
2010-12-07 09:13:32 +00:00
alteredq
c8ee1c5dc2
Merge remote branch 'remotes/upstream/master'
2010-12-06 16:00:53 +01:00
alteredq
52ef987a79
Small optimization to Minecraft demo: not drawing bottom faces.
...
For this extended Cube primitive with "sides" parameter.
You can use it to switch off cube faces like this:
var cube = new Cube( 100, 100, 100, 1, 1, materials, false, { ny: false } );
Default is all six faces on => { px: true, nx: true, py: true, ny: true, pz: true, nz: true }
2010-12-06 15:58:55 +01:00
Mr.doob
e829542744
Restored the correct illumination for the Minecraft demo.
2010-12-06 14:30:59 +00:00
Mr.doob
1f50c67942
Merge remote branch 'alteredq/master'
2010-12-06 14:25:27 +00:00
alteredq
a0e29d1c67
Oops, texture pack attribution got lost in merge.
2010-12-06 14:58:31 +01:00
alteredq
89cd9198dd
Fixed a subtle bug in texture parameters (with missing mapping, all other parameters were shifted).
...
Thanks again Firefox for verbose WebGL warnings.
2010-12-06 14:51:15 +01:00
Mr.doob
4cfa921d9d
Merge remote branch 'alteredq/master'
2010-12-06 13:28:43 +00:00
alteredq
4dfadc00d5
Merge remote branch 'remotes/upstream/master'
2010-12-06 14:21:31 +01:00
alteredq
3410028458
Made Minecraft demo working in Firefox.
2010-12-06 14:16:37 +01:00
Mr.doob
6f898f9fba
Updated texture pack for Minecraft demo.
2010-12-06 13:14:22 +00:00
alteredq
7bc909bc04
Merge remote branch 'remotes/upstream/master'
2010-12-06 14:01:19 +01:00
Mr.doob
12ce3e945b
Added minecraft demo.
2010-12-06 12:21:34 +00:00
alteredq
a31a8aaacf
Refactored build system so that it's possible to generate includes for each configuration.
...
Also made code slightly faster (and more Pythonic).
2010-12-06 12:59:30 +01:00
alteredq
508d22f296
Synced with mrdoob's branch.
2010-12-06 11:48:40 +01:00
Mr.doob
a9e185aa70
Updated README includes.
...
Pushed revision number to 31.
r31
2010-12-06 10:32:38 +00:00
Mr.doob
a030086cf5
texture.loaded = true → texture.image.loaded = true
2010-12-06 10:09:50 +00:00
Mr.doob
e7f5f3865a
Fixed WebGL Wrappings.
...
Added WebGL Texture Filters.
2010-12-06 08:50:28 +00:00