Hi,
I've just pushed a new band texture to enable complex gradients. It is currently available as a color or a float texture.
The parameters are:
- "float amount" texturable parameter to select inside the gradient (equivalent to the mix amount)
- "float offsets" float list defining reference points for the gradient in the (0-1) range, in ascending order
- "texture tex*" where * is the index of the corresponding reference point in the above list (eg tex1, tex2), it is the gradient value at the reference point
I just realized that "tex*" parameters are numbered starting from 0 instead of 1 which is inconsistent with the current numbering schemes in the SDL, and I also forgot to check that offsets are in ascending order, so I'll probably push an update soon to fix those 2 issues. Please report if you find something else.
Jeanphi
