summaryrefslogtreecommitdiff
path: root/gfx/gl/sceneShader.cpp
diff options
context:
space:
mode:
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() :