UE4 crashes when using dynamic cascaded shadows on instanced static meshes that use materials with world position offset in mobile
UE4 crashes with the error "Couldn't find Shader TShadowDepthPSPixelShadowDepth_NonPerspectiveCorrectfalse for Material Resource".
This only occurs when the preview rendering level is set to mobile. It doesn't occur when set to Shader Model 5. Nor does it occur with normal static mesh components. Is this a bug?
(edit: I've updated to the latest release, and it's occurring even without cascaded shadows, seems like the issue is with the world position offset and instanced static meshes)
Yeah, it looks like TShadowDepthPS::ShouldCache is missing a test for this.
Can you try changing the content of TShadowDepthPS::ShouldCache() 'if (!IsFeatureLevelSupported(Platform, ERHIFeatureLevel::SM4))' branch to be:
and let me know if that fixes it for you.
answered Oct 17 '16 at 11:07 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here