I’ve hidden a SkinnedMeshRenderer with the camera culling mask, so I can render it myself with CommandBuffer.DrawRenderer to assign a second color output to an MRT. However, the renderer thinks it’s not visible to any cameras, and decides not to update the mesh. This happens even if “Update when offscreen” is checked.
(This wasn’t happening for the last couple days where I was working on this shader. I’m guessing I had the scene view pointing at the mesh the whole time, which triggers an update and hides the problem.)
How can I prevent a renderer from drawing, so I can do it, without it deciding not to update the mesh as a result?