activating shadow on switch while render has problems