ColorTransform.cpp
Go to the documentation of this file.
54 return ColorTransform::RotateHue( to_hsv.x - from_hsv.x ) * ColorTransform::ShiftSaturation( to_hsv.y - from_hsv.y ) * ColorTransform::ScaleValue( to_hsv.z / from_hsv.z );
106 return float4( sRGB_to_linearRGB( val.x ), sRGB_to_linearRGB( val.y ), sRGB_to_linearRGB( val.z ), val.w );
119 return float4( linearRGB_to_sRGB( val.x ), linearRGB_to_sRGB( val.y ), linearRGB_to_sRGB( val.z ), val.w );