Why can't map virtual shader source path?


Capture

you have to register your shader directory using AddShaderSourceDirectoryMapping().
see FLensDistortion::StartupModule

1 Like
  • Is there a problem with registration?
  • It also prompts an error :Can’t map virtual shader source path “/Plugins/Foo/Shaders/Private/MyShader.USF”.

Did you ever figure this out?

I’m having an error like this here:

Can’t see any reason for it, maybe the path is wrong in-engine