summaryrefslogtreecommitdiff
path: root/gfx/gl/sceneShader.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-01-01 11:36:26 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-01-01 11:36:26 +0000
commit8635bb43078dec951da63e3a4442f6a2f70ac686 (patch)
tree59f39dbbfae61623279137671a9d31c8f419018d /gfx/gl/sceneShader.cpp
parentTemplatise functions in maths.h using PositionND (diff)
downloadilt-8635bb43078dec951da63e3a4442f6a2f70ac686.tar.bz2
ilt-8635bb43078dec951da63e3a4442f6a2f70ac686.tar.xz
ilt-8635bb43078dec951da63e3a4442f6a2f70ac686.zip
Simplify and 'fix' the wave cycle
Diffstat (limited to 'gfx/gl/sceneShader.cpp')
-rw-r--r--gfx/gl/sceneShader.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/gfx/gl/sceneShader.cpp b/gfx/gl/sceneShader.cpp
index 57c8bb7..ccc1a1d 100644
--- a/gfx/gl/sceneShader.cpp
+++ b/gfx/gl/sceneShader.cpp
@@ -85,8 +85,7 @@ void
SceneShader::WaterProgram::use(float waveCycle) const
{
Program::use();
- Position3D waves {waveCycle, 0.F, 0.F};
- glUniform3fv(waveLoc, 1, glm::value_ptr(waves));
+ glUniform1f(waveLoc, waveCycle);
}
SceneShader::PointLightShader::PointLightShader() :