Virtual shader source file name should be absolute in Unreal Engine
The shader compiler was asked to compile a shader file with an invalid virtual path. In the reported case this came from compiling shaders for Shader Model 5 while Virtual Textures or Substrate were enabled, a combination SM5 does not support.
Paste your log: find the cause in seconds Runs in your browser, nothing is uploaded.
Common causes
- Shader Model 5 (SM5) is enabled for Windows together with Virtual Textures or Substrate.
- A plugin ships shaders with a wrong virtual shader path mapping.
How to fix it
- Open Project Settings > Platforms > Windows and look at Targeted RHIs.
- Uncheck the DirectX 11 / SM5 shader format if your project relies on Virtual Textures or Substrate.
- Alternatively disable Substrate (Project Settings > Rendering) if you need SM5.
- If the path in the error points to a plugin, update or disable that plugin.
- Restart the editor (shaders will recompile) and cook again.
Questions
Can it be caught before cooking?
Yes, it can be checked before you start a cook: Detect SM5 enabled together with Virtual Textures or Substrate in the project settings.