소스 검색

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 년 전
부모
커밋
f2dab6461c
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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 );