If you fix our water shader I will Paypal you 10$
If you know the shader pipeline this is probably a 10 min fix.
We are currently developing www.UltrawingsGame.com for the Rift and are hoping to release it later this month. However we have a shader issue which the developer will not respond to:
The issues relates to a Shader Forge shader that uses mixed mode lighting. This was working in Unity 5.3 but broke when we switched to Unity 5.5
It appears as though the (Shader Forge) Lightmapped Shader which is using Mix Mode Direct Light is broken / not working the way it used to work in previous versions of Unity.
I think the light might be calculated 2x. Once for the light map and once for the real time effect… or maybe it’s just a blending issue. Either way, I have made a test level to illustrate the point.
To repo the issue d/l the attached file and:
- Open TestMixedMode1.unity
- Add TestMixedMode2.unity to the scene manager (hierarchy)
- Add TestMixedMode3.unity to the scene manager (hierarchy)
- Select each light from TestMixedMode2.unity and TestMixedMode3.unity and disable them.
- Toggle the light from TestMixedMode1.unity on and off.
- Notice how the Right objects react correctly to the light as it is toggled on and off.
- Notice how the Left objects don’t react correctly to the light as it is toggled on and off.
Some Additional Info:
A) The Right Objects have a default UnityShader applied (BasicShader.shader)
B) The Left Objects have a very basic ShaderForge shader applied (MixedModeBroken.shader)
C) Left Blue Mesh is the actual shader (complex) that we are using in game which needs to be repaired. (IslandWater.shader)
Functionality:
I) In game the sphere represents an aircraft.
II) At any one moment only one direct light is active.
III) As you travel across the scene boarders one light is switched on and one is switched off.
IV) On the right most objects this is functioning as designed.
V) You can see the the left most objects, including our water shader, are not functioning correctly.
Thanks tons!
Super Ultra Hyper
2905704–214043–MixedModeBroken.zip (3.8 MB)