mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 12:09:36 +00:00
Add ICC profile option
This commit is contained in:
@@ -68,3 +68,12 @@ float3 AppleRGBToSRGBLinear(float3 color)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
float3 ApplyColorSpaceTransform(float3 color)
|
||||
{
|
||||
#ifdef USE_ICC_PROFILE
|
||||
return saturate(AppleRGBToSRGBLinear(color));
|
||||
#else
|
||||
return SRGBToLinear(color);
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user