Преглед изворни кода

ProjectorLightNode: Remove obsolete `toVar()`. (#31474)

Michael Herzog пре 5 месеци
родитељ
комит
868515ff41
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/nodes/lighting/ProjectorLightNode.js

+ 1 - 1
src/nodes/lighting/ProjectorLightNode.js

@@ -63,7 +63,7 @@ class ProjectorLightNode extends SpotLightNode {
 	 */
 	 */
 	getSpotAttenuation( builder ) {
 	getSpotAttenuation( builder ) {
 
 
-		const attenuation = float( 0 ).toVar();
+		const attenuation = float( 0 );
 		const penumbraCos = this.penumbraCosNode;
 		const penumbraCos = this.penumbraCosNode;
 
 
 		// compute the fragment's position in the light's clip space
 		// compute the fragment's position in the light's clip space

粤ICP备19079148号