- 21 9月, 2011 1 次提交
-
-
由 Mr.doob 提交于
-
- 13 9月, 2011 1 次提交
-
-
由 alteredq 提交于
-
- 07 9月, 2011 1 次提交
-
-
由 alteredq 提交于
-
- 06 9月, 2011 1 次提交
-
-
由 Mr.doob 提交于
-
- 01 9月, 2011 2 次提交
-
-
由 alteredq 提交于
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.
-
由 alteredq 提交于
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).
-
- 31 8月, 2011 4 次提交
-
-
由 alteredq 提交于
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).
-
由 alteredq 提交于
-
由 alteredq 提交于
Added generic ShaderPass. Removed SepiaPass, ScreenPass, VignettePass. Added bleachbypass shader. Simplified multi-composer pipeline in postprocessing example.
-
由 alteredq 提交于
-
- 30 8月, 2011 3 次提交
- 29 8月, 2011 2 次提交
- 03 7月, 2011 1 次提交
-
-
由 Mr.doob 提交于
-
- 02 7月, 2011 1 次提交
-
-
由 alteredq 提交于
Plus some more Loader changes: - fixed diffuse color and opacity being skipped when diffuse texture is present in JSON - more proper handling of Phong materials (now use ambient / diffuse / specular / shininess from JSON) - added handling of wrap / offset / repeat parameters for all textures Fixed broken multiple lights indices in new normal map shader and changed displacement scale and bias to saner values. Fixed broken postprocessing and Earth examples (were not yet translated to use new normal map shader).
-
- 14 6月, 2011 1 次提交
-
-
由 Mr.doob 提交于
-
- 09 4月, 2011 3 次提交
- 31 3月, 2011 1 次提交
-
-
由 Mr.doob 提交于
Moved materials/RenderTarget.js ⟶ renderer/WebGLRenderTarget.js
-
- 28 3月, 2011 1 次提交
-
-
由 alteredq 提交于
It doesn't have effect there anyway as scene is rendered to FBO without multisampling. Turning antialiasing off here didn't have much effect on performance though (unlike for particles).
-
- 21 3月, 2011 1 次提交
-
-
由 alteredq 提交于
-
- 09 3月, 2011 1 次提交
-
-
由 alteredq 提交于
Also updated GUI-DAT (didn't help with recent Chrome compositing bugs, though this is Chrome Windows issue), added FileAPI to Detector and fixed aspect ratio bug in WebGLRenderer.
-
- 07 3月, 2011 1 次提交
-
-
由 alteredq 提交于
Clearing API for rendering to RenderTarget is now flipped: before forced clearing of render target was default, now no clearing is default. New way of doing things saves one extra duplicitous clear call when switching render targets (like when doing postprocessing). (doing documentation is indeed turning out to be useful)
-
- 28 2月, 2011 1 次提交
-
-
由 alteredq 提交于
Refactored everything to use CamelCase naming for properties. Plus some smaller fixes here and there. Went through all examples, all should work. JSON files exported from Blender / converted from OBJ files still use underscored property names internally. I don't know, should these also be changed?
-
- 24 2月, 2011 1 次提交
-
-
由 alteredq 提交于
That was much tougher than expected. No wonder other WebGL video demos around the web are broken. Firefox OpenGL / ANGLE and Chrome OpenGL were ok, getting it to work in Chrome ANGLE was rather tricky. Please report if something got broken. I tried to go through all textured examples but I may have missed something. If you want to refresh texture on WebGL side, you just set "texture.needsUpdate" flag (if you use Loader or ImageUtils.loadTexture / loadTextureCube everything is taken care of). Flag has to be set also for canvas-based textures, sorry no escaping this :(. I tried and it lead to ugly problems (e.g. AO minecraft demo mixes several asynchronously loaded and generated images into one texture, with autodetect always something was broken). "needsUpdate" should work also on cube textures, though it's not tested yet (also there I didn't put hack for Chrome ANGLE).
-
- 23 2月, 2011 1 次提交
-
-
由 Mr.doob 提交于
build/Three.js - Includes all renderers + extras build/custom/ThreeCanvas.js - Canvas renderer only build/custom/ThreeDOM.js - DOM renderer only build/custom/ThreeSVG.js - SVG renderer only build/custom/ThreeWebGL.js - WebGL renderer only build/custom/ThreeExtras.js - Extras only Moved `THREE.Detector.js` to `examples/js/Detector.js`. Updated examples to reflect these changes.
-
- 22 2月, 2011 1 次提交
-
-
由 Mr.doob 提交于
-
- 20 2月, 2011 1 次提交
-
-
由 Mr.doob 提交于
Renamed examples.
-
- 14 2月, 2011 1 次提交
-
-
由 alteredq 提交于
-
- 13 2月, 2011 2 次提交
-
-
由 alteredq 提交于
That was painful; hopefully since now it should be easier to have it in every WebGL example. It's enough to add one line (ideally as the first thing that gets executed): if ( ! THREE.Supports.webgl ) THREE.Supports.addGetWebGLMessage(); This will add message box with default styling centered near top of the window. Optional parameters "parent" and "id" can be specified for further customization and integration with the document, also message DOM element is returned for easier access. var messageElement = THREE.Supports.addGetWebGLMessage( { parent: container, id: "my_message" } ); By default, message is added to document.body and has id "oldie" (can be styled with CSS).
-
由 alteredq 提交于
Created "THREE.Supports" object, which should centralize this stuff. So far it detects <canvas>, WebGL and WebWorkers; later it could detect for example GPU capabilities. Not sure about name or location, but it's pretty tiring go through all examples when something changes, so it should be somewhere in the library. Code duplication is bad: even html snippets with error message should be centralized somewhere, so that when new browsers arrive we wouldn't have to keep changing them in many places.
-
- 12 2月, 2011 1 次提交
-
-
由 alteredq 提交于
This is to be able to control depth buffer writing / testing on per geometry chunk level (before it was possible just to hack it on per scene level via exposed GL context). Disabling depth test is useful for example for additively blended particles, handling of transparency or for having background textured quad. Another option would be to have it on per object level, but then this could prevent different handling of objects with both transparent and opaque parts. Also in this commit: - more progress towards mesh vertex colors - less matrix multiplications in render call - fixed ugly bug in doubleSided / flipSided handling - cleanup of materials - added a lot of missing stuff in debug strings and parameters handlers - normal and depth materials now have opacity parameter - wrote comments for non-obvious things
-
- 03 2月, 2011 2 次提交
- 02 2月, 2011 2 次提交
- 16 1月, 2011 1 次提交
-
-
由 alteredq 提交于
-