提交 76f53049 编写于 作者: M Mr.doob

WebGLRenderer: object.isMesh is always undefined when using ImmediateRenderObject.

上级 d117b5c5
......@@ -7,7 +7,6 @@ import {
TriangleFanDrawMode,
TriangleStripDrawMode,
TrianglesDrawMode,
NoColors,
LinearToneMapping,
BackSide
} from '../constants.js';
......@@ -1385,9 +1384,7 @@ function WebGLRenderer( parameters ) {
if ( object.isImmediateRenderObject ) {
var frontFaceCW = ( object.isMesh && object.normalMatrix.determinant() < 0 );
state.setMaterial( material, frontFaceCW );
state.setMaterial( material );
var program = setProgram( camera, scene.fog, material, object );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册