Just a simple script to create a discrete texture from a gradient. I do just fill the color of the offset in from the right to the left, ignoring any interpolation.
It works exactly like the normal GradientTexture resource, set a gradient and a width and have fun.
It could be used, for example, to create a color map for toon shading.
Just a simple script to create a discrete texture from a gradient. I do just fill the color of the offset in from the right to the left, ignoring any interpolation.
It works exactly like the normal GradientTexture resource, set a gradient and a width and have fun.
It could be used, for example, to create a color map for toon shading.