提交 65f73374 编写于 作者: M Mr.doob

Updated builds.

上级 c353d166
......@@ -8139,6 +8139,8 @@ THREE.Projector = function () {
} else if ( object instanceof THREE.Mesh || object instanceof THREE.Line || object instanceof THREE.Sprite ) {
if ( object.material.visible === false ) return;
if ( object.frustumCulled === false || _frustum.intersectsObject( object ) === true ) {
_object = getNextObjectInPool();
......@@ -13594,6 +13596,8 @@ 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;
};
......@@ -13746,6 +13750,8 @@ THREE.Material.prototype = {
material.overdraw = this.overdraw;
material.visible = this.visible;
return material;
},
......@@ -21790,6 +21796,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;
......@@ -22022,6 +22030,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 );
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册