diff options
| author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-13 19:45:54 +0000 |
|---|---|---|
| committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-13 19:45:54 +0000 |
| commit | 8566e63b26f9e7ee809c03394743a0576c499378 (patch) | |
| tree | cdcef5b698a224003ba54507dc24cbb27a57cbbe /gfx/gl/shaders/spotLight.vs | |
| parent | Add glContainer::at override to update a single item (diff) | |
| download | ilt-8566e63b26f9e7ee809c03394743a0576c499378.tar.bz2 ilt-8566e63b26f9e7ee809c03394743a0576c499378.tar.xz ilt-8566e63b26f9e7ee809c03394743a0576c499378.zip | |
We only need 3x3 matrix for model rotation spec
Diffstat (limited to 'gfx/gl/shaders/spotLight.vs')
| -rw-r--r-- | gfx/gl/shaders/spotLight.vs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gfx/gl/shaders/spotLight.vs b/gfx/gl/shaders/spotLight.vs index eed8778..e0196c3 100644 --- a/gfx/gl/shaders/spotLight.vs +++ b/gfx/gl/shaders/spotLight.vs @@ -5,8 +5,8 @@ layout(location = 1) in vec3 v_direction; layout(location = 2) in vec3 v_colour; layout(location = 3) in float v_kq; layout(location = 4) in float v_arc; -layout(location = 5) in mat4 model; -layout(location = 9) in ivec3 modelPos; +layout(location = 5) in mat3 model; +layout(location = 8) in ivec3 modelPos; uniform ivec3 viewPoint; |
