diff --git a/Assets/Shaders/TextBlit.shader b/Assets/Shaders/TextBlit.shader index 77ba7b5..9f8720c 100644 --- a/Assets/Shaders/TextBlit.shader +++ b/Assets/Shaders/TextBlit.shader @@ -53,16 +53,17 @@ Shader "ConformalDecals/Text Blit" v2f o; o.pos = UnityObjectToClipPos(vertex); - o.uv = float4(uv0.x, uv0.y, bias, 0); + o.uv = float4(uv0.x, uv0.y, bias, weight); return o; } fixed4 frag (v2f i) : SV_Target { float2 uv = i.uv.xy; float bias = i.uv.z; + float weight = i.uv.w; fixed4 c = 0; - c.r = saturate(tex2D(_MainTex,(uv)).a - bias); + c.r = saturate(tex2D(_MainTex,(uv)).a + weight); return c; } diff --git a/GameData/ConformalDecals/Resources/conformaldecals.kspfont b/GameData/ConformalDecals/Resources/conformaldecals.kspfont index 2e5a94c..3a82b57 100644 --- a/GameData/ConformalDecals/Resources/conformaldecals.kspfont +++ b/GameData/ConformalDecals/Resources/conformaldecals.kspfont @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4812aa47676df9378cf10c393f50aa7717018bff8605c592cc3b0fba4b241eaf -size 364943 +oid sha256:8580f3c17793051fdc08447401fb7920665ad681ff352588508044b662a3240b +size 364900 diff --git a/GameData/ConformalDecals/Resources/conformaldecals.shab b/GameData/ConformalDecals/Resources/conformaldecals.shab index c6d234a..3bc4a26 100644 --- a/GameData/ConformalDecals/Resources/conformaldecals.shab +++ b/GameData/ConformalDecals/Resources/conformaldecals.shab @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d8c3f8813b7462b99b05c2972d78473dfefef12b112a95ea58fc205dba84bbfc -size 889145 +oid sha256:4b9f1df541672d2c5aa8b7900bbba84d7845a72104b08e7be776c65fcf698f8f +size 888707 diff --git a/GameData/ConformalDecals/Resources/ui.conformaldecals b/GameData/ConformalDecals/Resources/ui.conformaldecals index 7c4ccd9..d4e8368 100644 --- a/GameData/ConformalDecals/Resources/ui.conformaldecals +++ b/GameData/ConformalDecals/Resources/ui.conformaldecals @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:838a0d73760ba9f66e4afb0b0608a220ebecdb73f681c2aed47a31149d06511f -size 280888 +oid sha256:43804de0d1a86e834bd0bb4eb7a29495c535b91851dcb63eb9dc19f1ce4de8c0 +size 280715