power_play/res/shaders/common.hlsl
2025-05-25 23:17:34 -05:00

9 lines
181 B
HLSL

#define DECL(t, n) t n : n
#define DESV(t, n, s) t n : s
/* Linear color form sRGB color */
float4 linear_from_srgb(float4 srgb)
{
return float4(pow(srgb.rgb, 2.2), srgb.a);
}