diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-10-10 00:59:41 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-10-10 00:59:41 +0100 |
commit | 439630ae86b01b714574335d4dd2e583f724dba3 (patch) | |
tree | 719374873dad863c4a71c741ed74f143bc52b089 /gfx | |
parent | Fix stencil shadow depth offset (diff) | |
download | ilt-439630ae86b01b714574335d4dd2e583f724dba3.tar.bz2 ilt-439630ae86b01b714574335d4dd2e583f724dba3.tar.xz ilt-439630ae86b01b714574335d4dd2e583f724dba3.zip |
Include foliage yaw rotation in vertex, pass through instead of whole model rotation matrix
Diffstat (limited to 'gfx')
-rw-r--r-- | gfx/gl/shaders/shadowDynamicPointStencil.vs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gfx/gl/shaders/shadowDynamicPointStencil.vs b/gfx/gl/shaders/shadowDynamicPointStencil.vs index dadf9c2..0dd2d79 100644 --- a/gfx/gl/shaders/shadowDynamicPointStencil.vs +++ b/gfx/gl/shaders/shadowDynamicPointStencil.vs @@ -1,17 +1,17 @@ #version 330 core #extension GL_ARB_shading_language_420pack : enable -layout(location = 0) in mat3 model; -layout(location = 3) in ivec3 worldPos; +layout(location = 0) in ivec3 worldPos; +layout(location = 1) in float modelYaw; uniform ivec3 viewPoint; uniform vec3 centre; -out mat3 vmodel; +out float vmodelYaw; out ivec3 vworldPos; void main() { - vmodel = model; + vmodelYaw = modelYaw; vworldPos = worldPos - viewPoint + ivec3(centre); } |