void DirectionalLighting::Activate() noexcept {
- GLContext::EnableDepthTest();
- GLContext::EnableBackfaceCulling();
program.Use();
glUniform3f(light_direction_handle, light_direction.x, light_direction.y, light_direction.z);
void BlockLighting::Activate() noexcept {
- GLContext::EnableDepthTest();
- GLContext::EnableBackfaceCulling();
- GLContext::DisableBlending();
program.Use();
}
void BlendedSprite::Activate() noexcept {
- GLContext::EnableAlphaBlending();
program.Use();
}