diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-12 19:35:58 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-12 19:35:58 +0000 |
commit | 51eb25ea0f1373ca0442b02049406af38eae3b33 (patch) | |
tree | 389169a5f60d58398554168b94a0c6003302fbf6 /gfx/gl/sceneShader.h | |
parent | Fix order or multiple to address reversed rotation (diff) | |
download | ilt-51eb25ea0f1373ca0442b02049406af38eae3b33.tar.bz2 ilt-51eb25ea0f1373ca0442b02049406af38eae3b33.tar.xz ilt-51eb25ea0f1373ca0442b02049406af38eae3b33.zip |
Add model support for point lights
Still invokes non-instanced point light shader
Diffstat (limited to 'gfx/gl/sceneShader.h')
-rw-r--r-- | gfx/gl/sceneShader.h | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/gfx/gl/sceneShader.h b/gfx/gl/sceneShader.h index 7e31cb8..813c1bf 100644 --- a/gfx/gl/sceneShader.h +++ b/gfx/gl/sceneShader.h @@ -51,27 +51,12 @@ class SceneShader { RequiredUniformLocation waveLoc; }; - class PointLightShader : public SceneProgram { - public: - PointLightShader(); - - void add(const Position3D & position, const RGB & colour, const float kq) const; - - private: - UniformLocation colourLoc; - UniformLocation kqLoc; - UniformLocation viewPointLoc; - glVertexArray va; - glBuffer b; - }; - public: SceneShader(); BasicProgram basic; WaterProgram water; - AbsolutePosProgram basicInst, landmass, absolute, spotLightInst; - PointLightShader pointLight; + AbsolutePosProgram basicInst, landmass, absolute, spotLightInst, pointLightInst; void setViewProjection(const GlobalPosition3D & viewPoint, const glm::mat4 & viewProjection) const; void setViewPort(const ViewPort & viewPort) const; |