Unity-Technologies / obstacle-tower-source

Obstacle Tower Source Code
Apache License 2.0
120 stars 25 forks source link

Door does not render properly in Future Theme #24

Closed MarcoMeter closed 4 years ago

MarcoMeter commented 4 years ago

door_future_bug

Windows 10, Unity v2019.4.1f1

Shader: FT_GL_ForceField Material: FT_ME_DoorRegular

MarcoMeter commented 4 years ago

Same issue on the build from the registry door_future_bug

MarcoMeter commented 4 years ago

@awjuliani This bug is caused by updating Unity to >2019.2.

I narrowed down the problem to the FT_GL_ForceField shader. The property AlphaBlockAmount misbehaves now. It has to be set to 0 if something should be visible.

Further, I noted that the animations of these doors do not work properly as well. Instead of moving up, they instantly vanish.

edit: Actually this might be the Blend node inside the ShaderGraph.

MarcoMeter commented 4 years ago

Before

shadergraph

After

mat2

MarcoMeter commented 4 years ago

The door animation bug is caused by this shader issue as well, because the animation affects the AlphaBlockAmount value.

edit: It must be either a shader graph or render pipeline issue.

awjuliani commented 4 years ago

Thanks for pointing this out Marco, we are taking a look internally, and will hopefully have a fix soon.

MarcoMeter commented 4 years ago

If that particular bug requires more afford, I'd suggest to downgrade to Unity v2019.2.21f.

awjuliani commented 4 years ago

We should be able to address it without the need for a downgrade. I have reached out to the person who originally created the shader/material, and he is taking a look at it this week.

MarcoMeter commented 4 years ago

Bug looks fixed to me