From c544b7f5200ec6d9bd962d1454397cfbf11ff74a Mon Sep 17 00:00:00 2001 From: Hayden Date: Tue, 24 Sep 2024 14:29:13 -0400 Subject: [PATCH] Screen Space Decals --- Assets/Shaders/Decal/decal.frag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Shaders/Decal/decal.frag b/Assets/Shaders/Decal/decal.frag index c4337af..fc9b3e5 100644 --- a/Assets/Shaders/Decal/decal.frag +++ b/Assets/Shaders/Decal/decal.frag @@ -48,7 +48,7 @@ void main () { vec3 FragPos = worldSpacePosition.xyz; vec4 localpos = inverseM * vec4(FragPos,1); - + float d = length(FragPos - DecalCenterPosition); if (d > 0.5) discard;