Substrate Materials not compatible with VR Template?

Hi, I’m using UE 5.3.2 and opened a new project using the VR template. However, when I enabled substrate materials in the project settings and restart the editor, it keeps crashing when trying to open. Any ideas?
Thanks in advance :).

Error message:

Fatal error: [File:D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\ShaderCompiler\ShaderCompiler.cpp] [Line: 5089] /Engine/Private/Strata/StrataForwardLighting.ush:279:78: error: no matching function for call to 'HasDynamicIndirectShadowCasterRepresentation' IndirectOcclusion = GetIndirectOcclusion(NearestResolvedDepthScreenUV, HasDynamicIndirectShadowCasterRepresentation(StrataPixelHeader)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Engine/Private/DeferredShadingCommon.ush:398:6: note: candidate function not viable: no known conversion from 'FStrataPixelHeader' to 'FGBufferData' for 1st argument bool HasDynamicIndirectShadowCasterRepresentation(FGBufferData GBufferData) ^ D3DCompileToDxil failed. Error code: Unspecified error (0x80004005). Failed to compile default material /Engine/EngineMaterials/WorldGridMaterial.WorldGridMaterial!

Open your project Config/DefaultEngine.ini file,

Change r.Substrate=True
to
r.Substrate=False

Relaunch.

1 Like

Hi! Thanks for the reply :slight_smile: but I want to use subtrate…

If you want, you need to switch the AntiAliasing mode inside the project settings to TSR (Temporal Super-Resolution). MSAA is not working with Substrate and VR and is producing weird errors.

Exactly… I have some very weird problems with VR… I guess I just need to wait for them to properly release substrate

You can but with TSR it already works, we have implemented Substrate in VR with that method.