Initial work on using premultiplied alpha in the UI

This commit is contained in:
Henrik Rydgård committed 2025-10-16 11:07:05 +02:00
1 parent c79d43db6b
commit b082e94edb
12 files changed
+35 -22

No files matched your search

+1 -1
View File
@@ -919,7 +919,7 @@ bool CreateGlobalPipelines() {
}
InputLayout *inputLayout = ui_draw2d.CreateInputLayout(g_draw);
BlendState *blendNormal = g_draw->CreateBlendState({ true, 0xF, BlendFactor::SRC_ALPHA, BlendFactor::ONE_MINUS_SRC_ALPHA });
BlendState *blendNormal = g_draw->CreateBlendState({ true, 0xF, BlendFactor::ONE, BlendFactor::ONE_MINUS_SRC_ALPHA });
DepthStencilState *depth = g_draw->CreateDepthStencilState({ false, false, Comparison::LESS });
RasterState *rasterNoCull = g_draw->CreateRasterState({});