+1 vote

I have a whole bunch of polygon2D nodes and they're fantastic, BUT I want to apply a shader to all of them that adds a drop shadow.

Is it possible to make a large, overarching shader that recognizes the colors of JUST my polygon2D nodes and uses them? Like importing them as shader params or something?

Or, alternatively, could I use a textureLod(SCREENTEXTURE, SCREENUV, 0.0) in such a way that the game's background color would have an alpha of 0 so I could make a screen shader that applies a drop shadow to all sprites?

Godot version 3.5
in Engine by (181 points)

Please log in or register to answer this question.

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 [email protected] with your username.