I am trying to change the shadow filtering quality in the project settings with GDScript using this code:
VisualServer.canvas_light_set_shadow_filter($DirectionalLight,VisualServer.CANVAS_LIGHT_FILTER_PCF13)
but I get this error message:
Parser Error: At "canvas_light_set_shadow_filter()" call, argument 1. The passed argument's type (Node) doesn't match the function's expected argument type (RID).
So how do I get the RID from my DirectionalLight or is there another way to do it?