Files
Team-A-dream-traveler-unity…/My project/Library/PackageCache/com.unity.shadergraph@eae1bed04ba5/GraphTemplates/Subgraphs/CanvasLinearSpaceConversion.hlsl
T
2026-11-24 15:51:02 +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