summaryrefslogtreecommitdiff
path: root/gfx/gl/shadowMapper.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-01-13 19:45:54 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-01-13 19:45:54 +0000
commit8566e63b26f9e7ee809c03394743a0576c499378 (patch)
treecdcef5b698a224003ba54507dc24cbb27a57cbbe /gfx/gl/shadowMapper.cpp
parentAdd glContainer::at override to update a single item (diff)
downloadilt-8566e63b26f9e7ee809c03394743a0576c499378.tar.bz2
ilt-8566e63b26f9e7ee809c03394743a0576c499378.tar.xz
ilt-8566e63b26f9e7ee809c03394743a0576c499378.zip
We only need 3x3 matrix for model rotation spec
Diffstat (limited to 'gfx/gl/shadowMapper.cpp')
-rw-r--r--gfx/gl/shadowMapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gfx/gl/shadowMapper.cpp b/gfx/gl/shadowMapper.cpp
index 1498bb0..5dc555a 100644
--- a/gfx/gl/shadowMapper.cpp
+++ b/gfx/gl/shadowMapper.cpp
@@ -208,6 +208,6 @@ ShadowMapper::DynamicPoint::use(const Location & location) const
void
ShadowMapper::DynamicPoint::setModel(const Location & location) const
{
- glUniformMatrix4fv(modelLoc, 1, GL_FALSE, glm::value_ptr(rotate_ypr(location.rot)));
+ glUniformMatrix3fv(modelLoc, 1, GL_FALSE, glm::value_ptr(location.getRotationTransform()));
glUniform3iv(modelPosLoc, 1, glm::value_ptr(location.pos));
}