Ver Fonte

SSAOShader: Fix another typo.

Mugen87 há 4 anos atrás
pai
commit
eccad97eff
2 ficheiros alterados com 4 adições e 4 exclusões
  1. 2 2
      examples/js/shaders/SSAOShader.js
  2. 2 2
      examples/jsm/shaders/SSAOShader.js

+ 2 - 2
examples/js/shaders/SSAOShader.js

@@ -85,7 +85,7 @@ THREE.SSAOShader = {
 
 		"	#else",
 
-		"		return texture2D( tDepth, coord ).x;",
+		"		return texture2D( tDepth, screenPosition ).x;",
 
 		"	#endif",
 
@@ -222,7 +222,7 @@ THREE.SSAODepthShader = {
 
 		"	#else",
 
-		"		return texture2D( tDepth, coord ).x;",
+		"		return texture2D( tDepth, screenPosition ).x;",
 
 		"	#endif",
 

+ 2 - 2
examples/jsm/shaders/SSAOShader.js

@@ -88,7 +88,7 @@ var SSAOShader = {
 
 		"	#else",
 
-		"		return texture2D( tDepth, coord ).x;",
+		"		return texture2D( tDepth, screenPosition ).x;",
 
 		"	#endif",
 
@@ -225,7 +225,7 @@ var SSAODepthShader = {
 
 		"	#else",
 
-		"		return texture2D( tDepth, coord ).x;",
+		"		return texture2D( tDepth, screenPosition ).x;",
 
 		"	#endif",