ycw 4 rokov pred
rodič
commit
342f248317
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      examples/jsm/postprocessing/SSRPass.js

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

@@ -220,7 +220,7 @@ var SSRPass = function ( { renderer, scene, camera, width, height, selects, enco
 
 	this.ssrMaterial = new ShaderMaterial( {
 		defines: Object.assign( {}, SSRShader.defines, {
-			MAX_STEP: Math.sqrt( this.width * this.width + this.height + this.height ).toFixed(1)
+			MAX_STEP: Math.sqrt( this.width * this.width + this.height * this.height ).toFixed(1)
 		} ),
 		uniforms: UniformsUtils.clone( SSRShader.uniforms ),
 		vertexShader: SSRShader.vertexShader,