Files
NetCode/Library/PackageCache/com.unity.shadergraph@2c9221ffedf4/Samples~/UGUIShaders/Subgraphs/Inputs/CanvasLinearSpaceConversion.hlsl
T
2025-12-21 18:31:02 +02: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