TonemapExtensionMethods
Extension methods for tone-mamping HDR colours into 0~1 range.
Methods
public static Color ToLowDynamicRange(this Color colour)
Map a colour with high dynamic range channels to a (0~1) clipped colour. This method uses smooth hermite splines to diffuse high dynamic range errors across channels. It provides a smooth transition at the low-dynamic/high-dynamic boundary but it's designed to provide good visuals, not accurate tonemapping.
Parameters:
| colour (Color) | Colour to map. |
Returns: Reduced colour.