|
@@ -676,7 +676,7 @@ function WebGLRenderer( parameters ) {
|
|
|
|
|
|
this.renderBufferDirect = function ( camera, fog, geometry, material, object, group ) {
|
|
|
|
|
|
- var frontFaceCW = ( object.isMesh && object.matrixWorld.determinant() < 0 );
|
|
|
+ var frontFaceCW = ( object.isMesh && object.normalMatrix.determinant() < 0 );
|
|
|
|
|
|
state.setMaterial( material, frontFaceCW );
|
|
|
|
|
@@ -1406,7 +1406,7 @@ function WebGLRenderer( parameters ) {
|
|
|
|
|
|
if ( object.isImmediateRenderObject ) {
|
|
|
|
|
|
- var frontFaceCW = ( object.isMesh && object.matrixWorld.determinant() < 0 );
|
|
|
+ var frontFaceCW = ( object.isMesh && object.normalMatrix.determinant() < 0 );
|
|
|
|
|
|
state.setMaterial( material, frontFaceCW );
|
|
|
|