You should really be setting this only when rendering the scene from the shadow camera’s point of view, which you can do by manipulating the light’s initial state via light.node().initial_state = light.node().initial_state.set_attrib(DepthOffsetAttrib.make(...))
1 Like