[Bug] Dot product with normal vector returns zero on mobile phones.

So I have been creating custom light for my game with shader graph and unlit master node, for that, I connected the output of the normal vector with another vector3 to simulate lighting direction and then saturated it. In the editor everything works fine but on my mobile device, a mesh is just a black color.

Am I doing something wrong? My mobile phone is Samsung A01

What is more surprising though, that if I connect normal vector directly to the unlit color it displays normals fine. It seems to me that the dot product with the custom vector nullifies its output on mobile phones. What can I do to fix it?

Update, the same shader logic with Amplify shader editor works as intended.

This seems more like a Shader Graph issue. Can you try asking in that forum? :slight_smile: Unity Engine - Unity Discussions

1 Like

Moved it to the shader graph thread.

1 Like