Browse Source

Uh?! Since when material.visible exists?

Mr.doob 11 years ago
parent
commit
4439d901e0
2 changed files with 0 additions and 8 deletions
  1. 0 4
      src/materials/Material.js
  2. 0 4
      src/renderers/WebGLRenderer.js

+ 0 - 4
src/materials/Material.js

@@ -32,8 +32,6 @@ THREE.Material = function () {
 
 	this.overdraw = 0; // Overdrawn pixels (typically between 0 and 1) for fixing antialiasing gaps in CanvasRenderer
 
-	this.visible = true;
-
 	this.needsUpdate = true;
 
 };
@@ -114,8 +112,6 @@ THREE.Material.prototype = {
 
 		material.overdraw = this.overdraw;
 
-		material.visible = this.visible;
-
 		return material;
 
 	},

+ 0 - 4
src/renderers/WebGLRenderer.js

@@ -2463,8 +2463,6 @@ THREE.WebGLRenderer = function ( parameters ) {
 
 	this.renderBufferDirect = function ( camera, lights, fog, material, geometry, object ) {
 
-		if ( material.visible === false ) return;
-
 		var linewidth, a, attribute;
 		var attributeItem, attributeName, attributePointer, attributeSize;
 
@@ -2700,8 +2698,6 @@ THREE.WebGLRenderer = function ( parameters ) {
 
 	this.renderBuffer = function ( camera, lights, fog, material, geometryGroup, object ) {
 
-		if ( material.visible === false ) return;
-
 		var linewidth, a, attribute, i, il;
 
 		var program = setProgram( camera, lights, fog, material, object );