Selaa lähdekoodia

Update BokehShader.js

Fix orthographicDepthToViewZ() call
Michael Herzog 7 vuotta sitten
vanhempi
commit
54a1e789c3
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      examples/js/shaders/BokehShader.js

+ 1 - 1
examples/js/shaders/BokehShader.js

@@ -70,7 +70,7 @@ THREE.BokehShader = {
 		"	#if PERSPECTIVE_CAMERA == 1",
 		"	#if PERSPECTIVE_CAMERA == 1",
 		"	return perspectiveDepthToViewZ( depth, nearClip, farClip );",
 		"	return perspectiveDepthToViewZ( depth, nearClip, farClip );",
 		"	#else",
 		"	#else",
-		"	return orthoDepthToViewZ( depth, nearClip, farClip );",
+		"	return orthographicDepthToViewZ( depth, nearClip, farClip );",
 		"	#endif",
 		"	#endif",
 		"}",
 		"}",