Files
TowerDefence/My project/Library/PackageCache/com.unity.shadergraph@c7cb9a0feac2/Samples~/UGUIShaders/Subgraphs/Inputs/CanvasLinearSpaceConversion.hlsl

14 lines
347 B
HLSL
Raw Normal View History

2025-11-14 17:30:41 +00: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