linearize theme from srgba on load, use linear colors everywhere; begin simplifying ui colors

This commit is contained in:
Ryan Fleury
2025-02-18 10:39:43 -08:00
parent 42e3c406cd
commit e45bdfd90d
9 changed files with 377 additions and 221 deletions
@@ -138,10 +138,10 @@ str8_lit_comp(
" };\n"
" float4 src_color[] =\n"
" {\n"
" linear_from_srgba(cpu2vertex.color01),\n"
" linear_from_srgba(cpu2vertex.color00),\n"
" linear_from_srgba(cpu2vertex.color11),\n"
" linear_from_srgba(cpu2vertex.color10),\n"
" cpu2vertex.color01,\n"
" cpu2vertex.color00,\n"
" cpu2vertex.color11,\n"
" cpu2vertex.color10,\n"
" };\n"
" float2 dst_verts_pct = float2((cpu2vertex.vertex_id >> 1) ? 1.f : 0.f,\n"
" (cpu2vertex.vertex_id & 1) ? 0.f : 1.f);\n"
+4 -4
View File
@@ -136,10 +136,10 @@ vs_main(CPU2Vertex cpu2vertex)
};
float4 src_color[] =
{
linear_from_srgba(cpu2vertex.color01),
linear_from_srgba(cpu2vertex.color00),
linear_from_srgba(cpu2vertex.color11),
linear_from_srgba(cpu2vertex.color10),
cpu2vertex.color01,
cpu2vertex.color00,
cpu2vertex.color11,
cpu2vertex.color10,
};
float2 dst_verts_pct = float2((cpu2vertex.vertex_id >> 1) ? 1.f : 0.f,
(cpu2vertex.vertex_id & 1) ? 0.f : 1.f);