diff --git a/Assets/Shaders/DecalFeatureBumped.shader b/Assets/Shaders/DecalFeatureBumped.shader index bf627fd..1e46f6f 100644 --- a/Assets/Shaders/DecalFeatureBumped.shader +++ b/Assets/Shaders/DecalFeatureBumped.shader @@ -59,7 +59,7 @@ Shader "ConformalDecals/Feature/Bumped" void surf (DecalSurfaceInput IN, inout SurfaceOutput o) { float4 color = tex2D(_Decal, IN.uv_decal); - float3 normal = UnpackNormal(tex2D(_DecalBumpMap, IN.uv_bump)); + float3 normal = UnpackNormalDXT5nm(tex2D(_DecalBumpMap, IN.uv_bump)); #ifdef DECAL_PROJECT // clip alpha diff --git a/Assets/Shaders/DecalsCommon.cginc b/Assets/Shaders/DecalsCommon.cginc index d9b6334..335696b 100644 --- a/Assets/Shaders/DecalsCommon.cginc +++ b/Assets/Shaders/DecalsCommon.cginc @@ -218,7 +218,7 @@ fixed4 frag_forward(v2f IN) : SV_Target #ifdef DECAL_PREVIEW i.normal = fixed3(0,0,1); #else - i.normal = UnpackNormal(tex2D(_BumpMap, IN.uv_base)); + i.normal = UnpackNormalDXT5nm(tex2D(_BumpMap, IN.uv_base)); #endif //DECAL_PREVIEW #endif //DECAL_BASE_NORMAL diff --git a/Distribution/GameData/ConformalDecals/Resources/conformaldecals.shab b/Distribution/GameData/ConformalDecals/Resources/conformaldecals.shab index 94366cc..0be1f97 100644 --- a/Distribution/GameData/ConformalDecals/Resources/conformaldecals.shab +++ b/Distribution/GameData/ConformalDecals/Resources/conformaldecals.shab @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c457b66439feef01196217745d2e5ac706fae8cc7132857d4c27669b00479ddd -size 128306 +oid sha256:e5aa83880f2762e2ee155b1d1fa4f8d1ccd7e23f524b554d005cd062e07e7509 +size 127217