diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-08-23 19:37:11 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-08-23 19:37:11 +0200 |
commit | 9db39091e2b16da26faf46758b86e046f95b2d47 (patch) | |
tree | 4b32e1df3b21a5d57f3a888e6703aec80b4be223 /shaders | |
parent | d5c8c9ba44d0225a942ae70006dc40e8cd22c244 (diff) |
.
Diffstat (limited to 'shaders')
-rw-r--r-- | shaders/lightmap.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/shaders/lightmap.cpp b/shaders/lightmap.cpp index 92ef7287..68afc634 100644 --- a/shaders/lightmap.cpp +++ b/shaders/lightmap.cpp @@ -236,7 +236,7 @@ void lightmap_shader::add_light(Vector2 neighbor_offset, const light_s& light) float alpha = light.color.a() / 255.f; auto color = (Vector3{light.color.rgb()} / 255.f) * alpha; - //framebuffer.fb.mapForDraw(GL::Framebuffer::ColorAttachment{0}); + framebuffer.fb.mapForDraw(GL::Framebuffer::ColorAttachment{0}); framebuffer.fb.clearColor(0, Color4{0, 0, 0, 1}); setUniform(LightColorUniform, color * alpha); @@ -266,11 +266,9 @@ void lightmap_shader::add_light(Vector2 neighbor_offset, const light_s& light) mesh_view.setIndexRange(0, 0, uint32_t(count*6 - 1)); AbstractShaderProgram::draw(mesh_view); -#if 0 setUniform(ModeUniform, BlendLightmapMode); framebuffer.fb.mapForDraw(GL::Framebuffer::ColorAttachment{1}); - AbstractShaderProgram::draw(blend_mesh); -#endif + AbstractShaderProgram::draw(light_mesh); //DebugTools::screenshot(framebuffer.fb, "../../../screenshot.bmp"); } |