04-06-2018, 12:17 PM
(This post was last modified: 04-06-2018, 12:17 PM by josemendez.)
(04-06-2018, 10:25 AM)danblack Wrote: Hi,
That helps a bit thanks. Changing line 83 & 84 in ObiEllipsoids.cginc fixes the third error, but allows the compiler to get further and find two more in ParticleShader.Shader. These are also caused by UNITY_MATRIX_V and fixed by adding a cast in the same way.
This doesn't help with the first two errors though, on lines 415 and 503 of UnityStandardCoreBackfaces.cginc. They seem to be caused by
UNITY_LIGHT_ATTENUATION(atten, i, s.posWorld);
(also line 503 seems to be missing a semi-colon)
Any ideas about what is causing this and how to fix it. It's been a week since I bought this now and I'd really like to get it compiling.
Cheers,
Dan
If you're not using the standard backfaces material (if you don't know, you definitely aren't) a quick fix would be to just remove these files:
- StandardBackfaces.shader
- UnityStandardCoreBackfaces.cginc
- UnityStandardCoreForwardBackfaces.cginc
- UnityStandardCoreForwardSimpleBackfaces.cginc
They are all found in Obi/Resources/ObiMaterials. These are failing to compile probably due to differences in 2018's standard shader implementation. We'll make sure to update them in upcoming versions.