|
@@ -2466,6 +2466,8 @@ 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;
|
|
|
|
|
@@ -2698,6 +2700,8 @@ 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 );
|