GradientToTexture Class Reference

Contains a single Extension function for gradients: ConvertToTexture

Static Public Member Functions

static Texture2D ConvertToTexture (this Gradient gradientToTexturize, int textureWidth, bool appendReverseGradient=true)
 Extension function for Gradients. Converts the gradient into a texture object. The texture width defines how many pixels will be in the output texture, and how many steps in the gradient will be evaluated.