How to get the camera vector in the shadow pass?

II_ADN_II
Fri, 22 Mar 2019 15:32:41 +0000
Rendering

The most I can get its the forward vector, but it only matches the camera vector in the directional lights(Transforming (1,0,0) from view space to world). I had tested view property but it allways outputs the player camera settings(despite description says it should work).

I am experimenting with signed distance functions and Im stuggling to make the objects cast apropiate shadows.

8 posts - 3 participants