Kaynağa Gözat

SSAOShader: Fix another typo.

Mugen87 4 yıl önce
ebeveyn
işleme
eccad97eff

+ 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",