提交 112e6250 编写于 作者: M Mr.doob

LensFlare: Fixed Render count or primcount is 0 warning.

上级 f9f10ced
......@@ -5,7 +5,7 @@
THREE.LensFlare = function () {
THREE.Mesh.call( this );
THREE.Mesh.call( this, THREE.LensFlare.Geometry, THREE.LensFlare.Material );
this.type = 'LensFlare';
this.frustumCulled = false;
......@@ -373,3 +373,9 @@ THREE.LensFlare.Geometry = ( function () {
return geometry;
} )();
THREE.LensFlare.Material = ( function () {
return new THREE.MeshBasicMaterial( { opacity: 0, transparent: true } );
} )();
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册