diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-01 11:36:26 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-01 11:36:26 +0000 |
commit | 8635bb43078dec951da63e3a4442f6a2f70ac686 (patch) | |
tree | 59f39dbbfae61623279137671a9d31c8f419018d /gfx/gl/sceneShader.cpp | |
parent | Templatise functions in maths.h using PositionND (diff) | |
download | ilt-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.cpp | 3 |
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() : |