diff options
Diffstat (limited to 'gfx/gl/sceneRenderer.h')
-rw-r--r-- | gfx/gl/sceneRenderer.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gfx/gl/sceneRenderer.h b/gfx/gl/sceneRenderer.h index 021936f..4195bcf 100644 --- a/gfx/gl/sceneRenderer.h +++ b/gfx/gl/sceneRenderer.h @@ -42,8 +42,11 @@ protected: const RGB &, const Direction3D &, const GlobalPosition3D &, const std::span<const glm::mat4x4>) const; private: - RequiredUniformLocation directionLoc, colourLoc, lightPointLoc, lightViewProjectionLoc, - lightViewProjectionCountLoc; + RequiredUniformLocation directionLoc {*this, "lightDirection"}; + RequiredUniformLocation colourLoc {*this, "lightColour"}; + RequiredUniformLocation lightPointLoc {*this, "lightPoint"}; + RequiredUniformLocation lightViewProjectionLoc {*this, "lightViewProjection"}; + RequiredUniformLocation lightViewProjectionCountLoc {*this, "lightViewProjectionCount"}; }; DeferredLightProgram lighting; |