power_play/res/shaders/common.hlsl
2025-05-23 21:12:44 -05:00

8 lines
158 B
HLSL

#define DECL(t, n) t n : n
#define DECL_PS(n) float4 n : SV_POSITION
float4 linear_from_srgb(float4 srgb)
{
return float4(pow(srgb.rgb, 2.2), srgb.a);
}