Files
LowPolyBattleSim/Library/PackageCache/com.unity.shadergraph@608f316e1f48/Samples~/UGUIShaders/Subgraphs/Inputs/CanvasLinearSpaceConversion.hlsl
Caleb Sandford deQuincey ecdd3e2a9e intial commit
2025-06-27 23:27:49 +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