Applying a shader to AnimatedSprite3D

Godot Version

Godot 4.2.2

Question

I want to apply a shader to an AnimatedSprite3D, but both material_override and material_overlay don’t work.