Skip to content

Commit

Permalink
fix shadow bug in VR (URP).
Browse files Browse the repository at this point in the history
  • Loading branch information
hecomi committed Aug 23, 2020
1 parent ee00171 commit 2ad138e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef URAYMARCHING_CAMERA_HLSL
#define URAYMARCHING_CAMERA_HLSL

inline float3 GetCameraPosition() { return _WorldSpaceCameraPos; }
inline float3 GetCameraPosition() { return UNITY_MATRIX_I_V._m03_m13_m23; }
inline float3 GetCameraForward() { return -UNITY_MATRIX_V[2].xyz; }
inline float3 GetCameraUp() { return UNITY_MATRIX_V[1].xyz; }
inline float3 GetCameraRight() { return UNITY_MATRIX_V[0].xyz; }
Expand Down

0 comments on commit 2ad138e

Please sign in to comment.