razcore-rad / godot-discrete-texture

Godot DiscreteTexture resource addon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Godot DiscreteTexture

This addon adds a DiscreteTexture resource that builds on top of GradientTexture.

API

It provides this new method:

  • discrete() -> ImageTexture which uses the Gradient resouce to produce an ImageTexture of size Vector2(width, 1). This can be previewed in the Inspector as shown in the image below

GradientTexture to DiscreteTexture

About

Godot DiscreteTexture resource addon

License:MIT License


Languages

Language:GDScript 100.0%