Răsfoiți Sursa

LensFlareElement: Remove opacity ctor parameter

Mugen87 7 ani în urmă
părinte
comite
f53b324b1b
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      examples/js/objects/LensFlare.js

+ 2 - 2
examples/js/objects/LensFlare.js

@@ -233,7 +233,7 @@ THREE.LensFlare.Shader = {
 
 //
 
-THREE.LensFlareElement = function ( texture, size, distance, color, blending, opacity ) {
+THREE.LensFlareElement = function ( texture, size, distance, color, blending ) {
 
 	THREE.Mesh.call( this );
 
@@ -252,7 +252,7 @@ THREE.LensFlareElement = function ( texture, size, distance, color, blending, op
 		uniforms: {
 			'map': { value: texture },
 			'occlusionMap': { value: null },
-			'opacity': { value: opacity || 1 },
+			'opacity': { value: 1 },
 			'color': { value: color || new THREE.Color( 0xffffff ) },
 			'scale': { value: new THREE.Vector2() },
 			'screenPosition': { value: new THREE.Vector3() }