diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-08-24 13:04:06 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-08-24 13:09:55 +0200 |
commit | 3b3f65ca00bcb33125c42b9ac9eef14cf750f938 (patch) | |
tree | e0b438b109443b4be426a11dc10720e6faad404e /main/draw.cpp | |
parent | 3708600519fb4fa9ecd68bf86459fb31724a1e6a (diff) |
lightmap preview works now, but is slow
Diffstat (limited to 'main/draw.cpp')
-rw-r--r-- | main/draw.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/draw.cpp b/main/draw.cpp index 7dacc870..d74d9f38 100644 --- a/main/draw.cpp +++ b/main/draw.cpp @@ -50,12 +50,12 @@ void main_impl::recalc_viewport(Vector2i fb_size, Vector2i win_size) noexcept // -- state --- glEnable(GL_LINE_SMOOTH); using BlendEquation = GL::Renderer::BlendEquation; - using BF = GL::Renderer::BlendFunction; + using BlendFunction = GL::Renderer::BlendFunction; using DepthFunction = GL::Renderer::DepthFunction; using ProvokingVertex = GL::Renderer::ProvokingVertex; using Feature = GL::Renderer::Feature; GL::Renderer::setBlendEquation(BlendEquation::Add, BlendEquation::Add); - GL::Renderer::setBlendFunction(BF::SourceAlpha, BF::OneMinusSourceAlpha); + GL::Renderer::setBlendFunction(BlendFunction::SourceAlpha, BlendFunction::OneMinusSourceAlpha); GL::Renderer::disable(Feature::FaceCulling); GL::Renderer::disable(Feature::DepthTest); GL::Renderer::enable(Feature::Blending); |