Przeglądaj źródła

Merge pull request #13099 from Mugen87/dev7

Workaround for #12883
Mr.doob 7 lat temu
rodzic
commit
6cbdbd9f8e

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

@@ -232,6 +232,7 @@ THREE.LensFlareElement = function ( texture, size, distance, blending, color, op
 
 
 	this.type = 'LensFlareElement';
 	this.type = 'LensFlareElement';
 	this.frustumCulled = false;
 	this.frustumCulled = false;
+	this.renderOrder = Infinity; // see #12883
 
 
 	this.flareTexture = texture;
 	this.flareTexture = texture;
 	this.flareSize = size || 1;
 	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 );
 	THREE.Mesh.call( this, geometry );
 
 
 	this.type = 'Reflector';
 	this.type = 'Reflector';
+	this.renderOrder = Infinity; // see #12883
 
 
 	var scope = this;
 	var scope = this;