Adjust Shaders Per Instance

Godot Version



Saw that it was now possible to adjust shader parameters per instance without having to duplicate the shader:

Unfortunately, there is like zero information online about this. Does anyone know how to accomplish this?
Was wondering how one would go about doing that in GDScript.

This is documented here: Shading language — Godot Engine (stable) documentation in English

Is there any plans on doing it for 2D as well?

It’s currently being worked on for particle shaders. The goal is to do the same for CanvasItem shaders in the future, although I can’t give an ETA.

1 Like