소스 검색

SSAOShader: Fix typo.

Mugen87 4 년 전
부모
커밋
7db62b06f8
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  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( depthSampler, coord ).x;",
+		"		return texture2D( tDepth, coord ).x;",
 
 		"	#endif",
 
@@ -222,7 +222,7 @@ THREE.SSAODepthShader = {
 
 		"	#else",
 
-		"		return texture2D( depthSampler, coord ).x;",
+		"		return texture2D( tDepth, coord ).x;",
 
 		"	#endif",
 

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

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