godot-extended-libraries / godot-next

Godot Node Extensions - Basic Node Extensions for Godot Engine
MIT License
960 stars 61 forks source link

Added the DiscreteGradientTexture #53

Closed Athrunen closed 4 years ago

Athrunen commented 4 years ago

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.

willnationsdev commented 4 years ago

This looks good. Thanks!