浏览代码

Workaround for #12883

Mugen87 7 年之前
父节点
当前提交
ca1f7cc281
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      examples/js/objects/LensFlare.js
  2. 1 0
      examples/js/objects/Reflector.js

+ 1 - 0
examples/js/objects/LensFlare.js

@@ -232,6 +232,7 @@ THREE.LensFlareElement = function ( texture, size, distance, blending, color, op
 
 	this.type = 'LensFlareElement';
 	this.frustumCulled = false;
+	this.renderOrder = Infinity; // see #12883
 
 	this.flareTexture = texture;
 	this.flareSize = size || 1;

+ 1 - 0
examples/js/objects/Reflector.js

@@ -7,6 +7,7 @@ THREE.Reflector = function ( geometry, options ) {
 	THREE.Mesh.call( this, geometry );
 
 	this.type = 'Reflector';
+	this.renderOrder = Infinity; // see #12883
 
 	var scope = this;