Explorar o código

Update webgpu_reflection.html

Fix deprecation warning.
Michael Herzog hai 8 meses
pai
achega
5a4d5a8f8f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/webgpu_reflection.html

+ 1 - 1
examples/webgpu_reflection.html

@@ -98,7 +98,7 @@
 				const floorUV = uv().mul( 15 );
 				const floorNormalOffset = texture( floorNormal, floorUV ).xy.mul( 2 ).sub( 1 ).mul( .02 );
 
-				const reflection = reflector( { resolution: 0.2 } );
+				const reflection = reflector( { resolutionScale: 0.2 } );
 				reflection.target.rotateX( - Math.PI / 2 );
 				reflection.uvNode = reflection.uvNode.add( floorNormalOffset );
 				scene.add( reflection.target );

粤ICP备19079148号