-
Notifications
You must be signed in to change notification settings - Fork 1
Description
An alternative to summed primaries for spectral upsampling is to use a quadratic sigmoid spectrum.
Any quadratic can be described with 3 coefficients so in that sense they can be considered equivalent to any 3-channel colour space. The process for this upsampling technique is to create a lookup table from XYZ to the quadratic's 3-coefficient space (ABC for now) which is then fed through a sigmoid function which compresses the range into 0-1. This way, any simple (one slope up, one slope down) spectrum can be defined with 3 coefficients.
We can utilise a simple 3D lookup table to take us from XYZ to ABC. Evaluating this spectrum is also efficient, though it might be slightly less efficient than the summed primaries approach. In the following example, A can be considered 'steepness', B is midpoint, and C is width.
