xyi/Library/PackageCache/com.unity.shadergraph@bd938c0c5e52/Samples~/UGUIShaders/Subgraphs/Inputs/CanvasLinearSpaceConversion.hlsl
Vladislav 2750530006 1
2025-09-18 15:33:57 +03: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