+1 vote

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?

in Engine by (84 points)

1 Answer

+1 vote
Best answer

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: https://github.com/godotengine/godot/issues/7298#issuecomment-275878202

by (28,833 points)
selected by

Thank you for the insight.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.