diff options
author | azagaya <azagaya.games@gmail.com> | 2019-08-08 10:24:44 -0300 |
---|---|---|
committer | azagaya <azagaya.games@gmail.com> | 2019-09-06 13:55:49 -0300 |
commit | b8358680670efd75a1a91ea516d1316e2c3fad18 (patch) | |
tree | 2f2d84a64fb1633303e4aa14a06a168c5c1cd647 /scene/resources/rectangle_shape_2d.h | |
parent | 3a6102a6f716904bb158819146e3fed7590b8106 (diff) |
Create shadow_vec for altering shadow computation
In 2.1 and 3.0, light_vec could be modified for altering shadow_computations.
But it broke shadows when rotating light. shadow_vec would do the same, but without breaking
shadows in rotated lights if not used.
Add inverse light transformation to shadow vec, so it's not affected when rotating lights;
Added usage define for shadow vec.
For shadow vec working properly when rotating a light, it's needed to multiply it by light_matrix normalized. Added usage define in order to don't do that if shadow_vec not used.
Diffstat (limited to 'scene/resources/rectangle_shape_2d.h')
0 files changed, 0 insertions, 0 deletions