Skip to content

Commit

Permalink
Screen Space Decals
Browse files Browse the repository at this point in the history
  • Loading branch information
HaydenD100 committed Sep 24, 2024
1 parent e6c64e4 commit c544b7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Shaders/Decal/decal.frag
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c544b7f

Please sign in to comment.