There seems to have been an update in r147 that has caused shadows to stop working for my instanced meshes. I believe it is related to customDepthMaterial. This seems to no longer be needed for meshes that have materials with alpha.
I do not use InstanceMesh but extend the shaders. I have been using this up through 146. Now this no longer works.
If I revert this change custom material works again of course.
Is this a bug? Should I report an issue or is custom material now expected to be overwritten like this?
If not a bug, how can I make shadows work on these instances now without custom depth material being recognized?