mirror of
https://github.com/drewcassidy/KSP-Conformal-Decals.git
synced 2024-06-11 05:54:07 +00:00
Hopefully fix decals when used with certain parts
This commit is contained in:
parent
76b01e9d18
commit
93196d5b65
|
@ -59,7 +59,7 @@ Shader "ConformalDecals/Feature/Bumped"
|
||||||
void surf (DecalSurfaceInput IN, inout SurfaceOutput o)
|
void surf (DecalSurfaceInput IN, inout SurfaceOutput o)
|
||||||
{
|
{
|
||||||
float4 color = tex2D(_Decal, IN.uv_decal);
|
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
|
#ifdef DECAL_PROJECT
|
||||||
// clip alpha
|
// clip alpha
|
||||||
|
|
|
@ -218,7 +218,7 @@ fixed4 frag_forward(v2f IN) : SV_Target
|
||||||
#ifdef DECAL_PREVIEW
|
#ifdef DECAL_PREVIEW
|
||||||
i.normal = fixed3(0,0,1);
|
i.normal = fixed3(0,0,1);
|
||||||
#else
|
#else
|
||||||
i.normal = UnpackNormal(tex2D(_BumpMap, IN.uv_base));
|
i.normal = UnpackNormalDXT5nm(tex2D(_BumpMap, IN.uv_base));
|
||||||
#endif //DECAL_PREVIEW
|
#endif //DECAL_PREVIEW
|
||||||
#endif //DECAL_BASE_NORMAL
|
#endif //DECAL_BASE_NORMAL
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:c457b66439feef01196217745d2e5ac706fae8cc7132857d4c27669b00479ddd
|
oid sha256:e5aa83880f2762e2ee155b1d1fa4f8d1ccd7e23f524b554d005cd062e07e7509
|
||||||
size 128306
|
size 127217
|
||||||
|
|
Loading…
Reference in New Issue
Block a user