Show differencesHistory of post edits
Posted 02 January 2013 - 09:25 AM
Posted 02 January 2013 - 09:24 AM
The easiest way to do this is to use some kind of lookup table. Determine an alpha value (0..1) on the x axis and use this alpha table to look up the mapped color in a 1d lookup table. This can be done on the GPU using some simple shader.