X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FViewport.hpp;h=a8cb69f0947f70cee14b6fc20df6f544b5114b1b;hb=b49cc8c88caf7d69b35b50e23a40528e71306ade;hp=1995ce6c3f0342b7319e107164f8f42a07f363fb;hpb=3f35e70a6b66daf2ffd59590e98e2dd11e6eaabb;p=blank.git diff --git a/src/graphics/Viewport.hpp b/src/graphics/Viewport.hpp index 1995ce6..a8cb69f 100644 --- a/src/graphics/Viewport.hpp +++ b/src/graphics/Viewport.hpp @@ -7,6 +7,8 @@ #include "Camera.hpp" #include "Canvas.hpp" #include "DirectionalLighting.hpp" +#include "PlainColor.hpp" +#include "SkyBoxShader.hpp" #include @@ -24,6 +26,7 @@ public: void VSync(bool b) noexcept; void EnableDepthTest() noexcept; + void EqualDepthTest() noexcept; void DisableDepthTest() noexcept; void EnableBackfaceCulling() noexcept; @@ -49,6 +52,9 @@ public: BlockLighting &ChunkProgram() noexcept; DirectionalLighting &EntityProgram() noexcept; DirectionalLighting &HUDProgram() noexcept; + PlainColor &WorldColorProgram() noexcept; + PlainColor &HUDColorProgram() noexcept; + SkyBoxShader &SkyBoxProgram() noexcept; BlendedSprite &SpriteProgram() noexcept; void WorldPosition(const glm::mat4 &) noexcept; @@ -64,6 +70,8 @@ private: BlockLighting chunk_prog; DirectionalLighting entity_prog; + PlainColor color_prog; + SkyBoxShader sky_prog; BlendedSprite sprite_prog; enum { @@ -71,6 +79,9 @@ private: CHUNK, ENTITY, HUD, + COLOR_WORLD, + COLOR_HUD, + SKY_BOX, SPRITE, } active_prog;