SRGBToLinear function

dynamic SRGBToLinear(
  1. dynamic c
)

Implementation

SRGBToLinear( c ) {

	return ( c < 0.04045 ) ? c * 0.0773993808 : Math.pow( c * 0.9478672986 + 0.0521327014, 2.4 );

}