+1 vote

Does anyone know how I would recreate canvas modulate as a shader?

I am looking to create a tinting shader that works like canvas modulate that I can apply to individual nodes. Canvas modulate appears to apply the color before the Light2D hits it, where modulating at node level will change the color of the light as well.

This is important in that if I set canvas modulate to black, 2D lights will lighten the blackness. If I modulate a node to black, it stays black. If I modulate to color at node level right now, it also tints the light color.

Any ideas how canvas modulate works and how I can replicate it?

Canvas modulate on left, node modulate on right
Canvas modulate on left, node modulate on right

Godot version 3.2.3
in Engine by (28 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.