提交 4439d901 编写于 作者: M Mr.doob

Uh?! Since when material.visible exists?

上级 487a04ef
......@@ -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;
},
......
......@@ -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 );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册