Files
BookRPG/Library/PackageCache/com.unity.shadergraph@6db99422c248/GraphTemplates/Subgraphs/CanvasLinearSpaceConversion.hlsl
2026-07-16 21:49:59 +01:00

14 lines
347 B
HLSL

#ifndef UI_COLOR_SPACE_CFN
#define UI_COLOR_SPACE_CFN
int _UIVertexColorAlwaysGammaSpace;
void IsLinearSpaceConversionRequired_float(out bool linearSpaceConversionRequired)
{
if (_UIVertexColorAlwaysGammaSpace && !IsGammaSpace())
linearSpaceConversionRequired = true;
else
linearSpaceConversionRequired = false;
}
#endif