mirror of
https://github.com/drewcassidy/KSP-Conformal-Decals.git
synced 2024-09-01 18:23:54 +00:00
Hopefully fix decals when used with certain parts
This commit is contained in:
parent
25ee8362c6
commit
86f68b3bf8
@ -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
|
||||||
|
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user