mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-06-15 08:32:22 -07:00
linearize theme from srgba on load, use linear colors everywhere; begin simplifying ui colors
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user