Browse Source

WebGLRenderer: Removed opacity === 0 checks. Fixes #1750.

Mr.doob 13 years ago
parent
commit
7d18966079
1 changed files with 0 additions and 4 deletions
  1. 0 4
      src/renderers/WebGLRenderer.js

+ 0 - 4
src/renderers/WebGLRenderer.js

@@ -2886,8 +2886,6 @@ THREE.WebGLRenderer = function ( parameters ) {
 
 
 	this.renderBufferDirect = function ( camera, lights, fog, material, geometryGroup, object ) {
 	this.renderBufferDirect = function ( camera, lights, fog, material, geometryGroup, object ) {
 
 
-		if ( material.opacity === 0 ) return;
-
 		var program, attributes, linewidth, primitives, a, attribute;
 		var program, attributes, linewidth, primitives, a, attribute;
 
 
 		program = setProgram( camera, lights, fog, material, object );
 		program = setProgram( camera, lights, fog, material, object );
@@ -2978,8 +2976,6 @@ THREE.WebGLRenderer = function ( parameters ) {
 
 
 	this.renderBuffer = function ( camera, lights, fog, material, geometryGroup, object ) {
 	this.renderBuffer = function ( camera, lights, fog, material, geometryGroup, object ) {
 
 
-		if ( material.opacity === 0 ) return;
-
 		var program, attributes, linewidth, primitives, a, attribute, i, il;
 		var program, attributes, linewidth, primitives, a, attribute, i, il;
 
 
 		program = setProgram( camera, lights, fog, material, object );
 		program = setProgram( camera, lights, fog, material, object );