浏览代码

LensFlareElement: Remove opacity ctor parameter

Mugen87 7 年之前
父节点
当前提交
f53b324b1b
共有 1 个文件被更改,包括 2 次插入2 次删除
  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() }