zwcloud / MeshTerrainEditor-issues

Mesh Terrain Editor issue tracking and online docs
https://zwcloud.github.io/MeshTerrainEditor-issues/
5 stars 3 forks source link

Normal is inverted when shading on android platform. #232

Open zwcloud opened 2 years ago

zwcloud commented 2 years ago

It happened with shader MTE/Standard/4 Textures/Bumped.

A workaround supposed by user TA-AQ (q35xxx66): This can be fixed by using UnpackNormalWithScale instead of UnpackNormal in the shader: image

This approach is the same as the one used in Unity's terrain shader TerrainSplatmapCommon.cginc in a recent version of Unity. 76)$3 (67UQ4Z5OS(7WH5~F

This is to be verified.