X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2Fshader.cpp;h=de994ce2a170437e07b9a37d647f8da571c85ae4;hb=5d2da8a07411ad6417d6ed8d1be997189cf5ce89;hp=41c1faf57f33be1cfdec0b90a05c767e3f0486a6;hpb=282d731ea8f10342efa82012028de7043b3dd639;p=blank.git diff --git a/src/graphics/shader.cpp b/src/graphics/shader.cpp index 41c1faf..de994ce 100644 --- a/src/graphics/shader.cpp +++ b/src/graphics/shader.cpp @@ -215,8 +215,6 @@ DirectionalLighting::DirectionalLighting() void DirectionalLighting::Activate() noexcept { - GLContext::EnableDepthTest(); - GLContext::EnableBackfaceCulling(); program.Use(); glUniform3f(light_direction_handle, light_direction.x, light_direction.y, light_direction.z); @@ -319,9 +317,6 @@ BlockLighting::BlockLighting() void BlockLighting::Activate() noexcept { - GLContext::EnableDepthTest(); - GLContext::EnableBackfaceCulling(); - GLContext::DisableAlphaBlending(); program.Use(); } @@ -398,7 +393,6 @@ BlendedSprite::BlendedSprite() void BlendedSprite::Activate() noexcept { - GLContext::EnableAlphaBlending(); program.Use(); }