I’ve just upgraded from 2021.3.7 to 2021.3.9. I immediately noticed that all Skinned Mesh Renderers in my project now render nearly completely black. There seems to be a tiny amount of color on them, but the lighting is all wrong.
This is only in the Game view. In the Scene view, everything looks correct. This occurs even if I create a completely new scene and drop a new camera into it. However, it’s not occurring in every project.
I notice there’s a flicker occasionally where one of the SMRs appears to render properly for a frame, then it immediately goes dark again.
If I switch back to 2021.3.7, everything renders fine again.
I suggest making a bug report for now.
Let’s hope someone has a fix in the meantime. You can maybe import the characters in a blank hdrp project and see where it starts breaking
I ended up figuring out the specific combination of settings that results in this bug, and reported it as IN-16773.
In a brand new HDRP project, if you enabled both Decal Layers and Light Layers, skinned mesh renderers will lose their lighting, and appear to only be lit by the current Visual Environment.
In this screenshot, Light Layers are enabled, but Decal Layers are disabled.
Worth mentioning that today’s 2021.3.10 update didn’t do anything to change this behavior. (Not that I’d have expected it to, since the bug was only just reported.)
Could you please post the link to the issuetracker? I would like to vote on it at least since it is another thing that is locking me in the earlier versions of 2021.3 LTS.
Hey; Thanks a lot for the report.
On our side, we managed to repro it easily.
I’ll keep you posted on this thread with the public issue tracker once it’s “live”
Thanks for the info. I’ve voted for that, maybe it will count somehow. It is kind of weird for me, for such bugs to surface since it is clearly visible in any project with skinned meshes and light/decal layers combo.
Alternatively we can set the color write mask in HDRenderPipeline.RenderObjectsMotionVectors to RGB_ which will also work for any other shaders which have a custom MotionVectors pass
I’ve just realized that HDRP Lit shader works fine after the update, but I use Better Lit Shaders from Asset Store. So author will probably need to do some adjustement.
Thanks for info.