Displaying shaders without a sprite texture

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Daniel Mircea
:warning: Old Version Published before Godot 3 was released.

I’m using shaders to create some animations, without any textures.

I’ve only used shaders so far by setting them as a material on a sprite. I could create a transparent image, but is there any other way?

:bust_in_silhouette: Reply From: Zylann

If your shader doesn’t do any texture fetch, then you could set any image on the sprite, it doesn’t really matter.
You could use a Node2D and draw a rectangle using draw_rect() or use a Polygon2D, but you’ll probably run into this issue if you need to use the UVs: UVs are unusable if VisualServer doesn't also get a texture · Issue #7298 · godotengine/godot · GitHub

Thank you for the insight.

Daniel Mircea | 2017-02-08 22:09