We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af04945 commit f52cfffCopy full SHA for f52cfff
1 file changed
src/shader-chunks/shaders/camera-pars.frag
@@ -9,11 +9,11 @@ uniform vec3 cameraParams;
9
// Define macro functions for calculating viewZ depending on the camera type.
10
#ifdef PERSPECTIVE_CAMERA
11
12
- #define getViewZ(depth) perspectiveDepthToViewZ(depth, cameraParams.x, cameraParams.y)
+ #define getViewZ(depth) perspectiveDepthToViewZ(depth, CAMERA_NEAR, CAMERA_FAR)
13
14
#else
15
16
- #define getViewZ(depth) orthographicDepthToViewZ(depth, cameraParams.x, cameraParams.y)
+ #define getViewZ(depth) orthographicDepthToViewZ(depth, CAMERA_NEAR, CAMERA_FAR)
17
18
#endif
19
0 commit comments