Files
stas-barecky/Library/PackageCache/com.unity.shadergraph@3cfe1d1f3f8c/GraphTemplates/Subgraphs/CanvasLinearSpaceConversion.hlsl
2026-01-08 20:43:08 +05: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