ProjectDDD/Assets/Samples/Shader Graph/17.1.0/UGUI Shaders/Subgraphs/Inputs/CanvasLinearSpaceConversion.hlsl
2025-07-30 19:44:58 +09: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