浏览代码

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 );