Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] shader error on Android(Oculus Quest) build
#5
(07-04-2020, 02:36 PM)josemendez Wrote: Unity's shader macros are a huge mess that conditionally compile out certain chunks depending on many factors (platform used, pipeline used, lightning settings, graphics API used, and a few others). Given that they must support many different capabilities in many different platforms/environments, this is not surprising (I'm not blaming them).

Our debug particle shader uses their lightning macros to get light attenuation values. It very well might be that these macros are compiled out if certain specific features are not available in  a given API, so the _ShadowCoord variable (which is used for sampling the shadow map to get light attenuation) might just disappear when using certain settings.

I was under the idea that light maps were the only thing that determined the availability of light attenuation macros, but this might have changed in recent versions  Indeciso . I will check it out.

I really appreciate your detailed explanation. I think I am able to understand the situation.
Thank you.
Reply


Messages In This Thread
RE: shader error on Android(Oculus Quest) build - by Snail921 - 07-04-2020, 02:51 PM