Shadows On/Off

In my shapediver application, I want the user to be able to show or hide product dimensions.
I realized the dimensions with text tags and lines.
I don`t want the text and lines to cast shadows, is it possble to turn shadows off for selected geometry?

btw, I realized the “off state” by text size zero and line length zero, this is working yet not very elegant - is there a better way to hide or show geometry?

It is not possible to turn off shadows for individual objects.

You can switch objects on/off either with Grasshopper Stream Filter and Toggle components or with API, see posts below.

Thank you Pavol. Stream Filter works fine!