Explorar o código

Fixed material grass example.
@gero: seems like previously WebGLRenderer will reverse() the transparent objects regardless of the sortObjects boolean. I think the new behaviour is right. But we should we aware that the behaviour changed here.

Mr.doob %!s(int64=11) %!d(string=hai) anos
pai
achega
f2dab6461c
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      examples/webgl_materials_grass.html

+ 2 - 0
examples/webgl_materials_grass.html

@@ -55,6 +55,8 @@
 
 				}
 
+				scene.children.reverse();
+
 				renderer = new THREE.WebGLRenderer();
 				renderer.sortObjects = false;
 				renderer.setClearColor( 0x003300 );