Nexus/Library/PackageCache/com.unity.shadergraph@759cfc176571/GraphTemplates/Subgraphs/CanvasLinearSpaceConversion.hlsl

14 lines
347 B
HLSL
Raw Permalink Normal View History

2026-01-06 17:23:00 +01:00
#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