Recently I met a problem that if I don't write #pragma multi_compile_fwdbase then the shadows will never be shown. However, if I don't want shadows, it's ok without this command.

Actually there are two questions I want to know.

  1. Shall I always write this command if my pass's tag is set to "LightMode" = "ForwardBase"?

  2. Recently I checked my custom shaders, a lot of shaders have no this command but all of them are working well, will it be a problem in the future?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.