i have a spatial shader that i’m using for foliage. i know that i can disable shadows with render_mode shadows_disabled; but i want to be able to turn shadows on or off on a per-material basis. is there any way for me to do that?
my question is, for a custom shader, is there a way that i can make shadow receiving a parameter? i know that shadows_disabled will disable shadow receiving for all material instanced of that shader, but i would like to make a uniform boolean that you can check on and off per-material- for this shader