diff options
| author | yum <yum.food.vr@gmail.com> | 2025-12-02 00:15:05 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-12-02 00:15:05 -0800 |
| commit | a6bbfc5c212ee6f6f3ab3073db2585fcbc474ec3 (patch) | |
| tree | 6cb9c288cf2a75ccafa2545cd12771ed93afde70 | |
| parent | 17740f36e6c6b6f1f13dcb60f4d382b9ccda3d4f (diff) | |
fix sdf ssn replace mode
| -rw-r--r-- | decals.cginc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/decals.cginc b/decals.cginc index 96b51f9..f75e63f 100644 --- a/decals.cginc +++ b/decals.cginc @@ -218,7 +218,6 @@ float3 calculateSdfSsn(DecalParams params, float2 decal_uv, float4 decal_albedo) #define APPLY_DECAL_SDF_SSN_ON_MODE_REPLACE(i, albedo, normal_tangent, metallic, smoothness, emission, params) \
{ \
float3 sdf_normal_ts = calculateSdfSsn(params, decal_uv, decal_albedo); \
- sdf_normal_ts.xy *= 1.0f - albedo.a; \
normal_tangent = normalize(lerp(normal_tangent, normalize(sdf_normal_ts), decal_albedo.a)); \
}
|
