2
0
ycw 4 жил өмнө
parent
commit
4592ca0167

+ 1 - 1
examples/jsm/postprocessing/SSRPass.js

@@ -639,7 +639,7 @@ SSRPass.prototype = Object.assign( Object.create( Pass.prototype ), {
 		this.width = width;
 		this.height = height;
 
-		this.ssrMaterial.defines.MAX_STEP = Math.sqrt( width * width + height * height );
+		this.ssrMaterial.defines.MAX_STEP = Math.sqrt( width * width + height * height ).toFixed(1);
 		this.ssrMaterial.needsUpdate = true;
 		this.beautyRenderTarget.setSize( width, height );
 		this.prevRenderTarget.setSize( width, height );