summaryrefslogtreecommitdiffstats
path: root/src/Rml.cpp
diff options
context:
space:
mode:
authorLaG1924 <lag1924@gmail.com>2021-12-05 01:42:15 +0100
committerLaG1924 <lag1924@gmail.com>2021-12-05 01:42:15 +0100
commitda66c30a110233f7c8b71b5e6aa8dd804879c1b6 (patch)
treebe229b509f08c6a0f851d5c4fdf3e322bac6402a /src/Rml.cpp
parentAdded Ambient occlusion options parameter (diff)
downloadAltCraft-da66c30a110233f7c8b71b5e6aa8dd804879c1b6.tar
AltCraft-da66c30a110233f7c8b71b5e6aa8dd804879c1b6.tar.gz
AltCraft-da66c30a110233f7c8b71b5e6aa8dd804879c1b6.tar.bz2
AltCraft-da66c30a110233f7c8b71b5e6aa8dd804879c1b6.tar.lz
AltCraft-da66c30a110233f7c8b71b5e6aa8dd804879c1b6.tar.xz
AltCraft-da66c30a110233f7c8b71b5e6aa8dd804879c1b6.tar.zst
AltCraft-da66c30a110233f7c8b71b5e6aa8dd804879c1b6.zip
Diffstat (limited to 'src/Rml.cpp')
-rw-r--r--src/Rml.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Rml.cpp b/src/Rml.cpp
index 746f6a4..f6fff44 100644
--- a/src/Rml.cpp
+++ b/src/Rml.cpp
@@ -68,6 +68,7 @@ RmlRenderInterface::RmlRenderInterface() {
pipelineConfig->SetTarget(gal->GetDefaultFramebuffer());
pipelineConfig->SetVertexShader(gal->LoadVertexShader(vertexSource));
pipelineConfig->SetPixelShader(gal->LoadPixelShader(pixelSource));
+ pipelineConfig->SetBlending(Gal::Blending::Additive);
auto vertBuffBind = pipelineConfig->BindVertexBuffer({
{"pos", Gal::Type::Vec2},
@@ -92,6 +93,7 @@ RmlRenderInterface::RmlRenderInterface() {
texPipelineConfig->SetTarget(gal->GetDefaultFramebuffer());
texPipelineConfig->SetVertexShader(gal->LoadVertexShader(vertexSource));
texPipelineConfig->SetPixelShader(gal->LoadPixelShader(texPixelSource));
+ texPipelineConfig->SetBlending(Gal::Blending::Additive);
auto texVertBuffBind = texPipelineConfig->BindVertexBuffer({
{"pos", Gal::Type::Vec2},