Selaa lähdekoodia

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 11 vuotta sitten
vanhempi
commit
f2dab6461c
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  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 );