#Very dumb of me not to clarify that when
1 messages · Page 1 of 1 (latest)
half3 CameraRight() {
return UNITY_MATRIX_V._m00_m01_m02;
}
half3 CameraUp() {
return UNITY_MATRIX_V._m10_m11_m12;
}
half3 CameraForward() {
return -UNITY_MATRIX_V._m20_m21_m22;
}
Something like this? @balmy dust You can get some information from the view matrix, which is built from the camera transform. Matrices are often API dependent, so this might only work for DX api, I'm not sure (I wrote this down a long time ago).