Godot Tutorial - How to fix shader clipping
So I have AnimatedSprite with a shadow shader
But as you can see, the shadow shader is cut off
Let's say that our AnimatedSprite is in a Quad
and what we'll do is expand the Quad
Add Vertex node
Add Multiply node and multiply by 2
This enlarges the Quad
Now correct the texture by multiplying the UV
Add Multiply node and multiply by 2 then connect
Well, but the position is not correct
Simply go to Vertex and add the Add node then adjust it
My AnimatedSprite offset is in the center, so I add it by the size of my texture divided by 2.
And yeah, no clipping anymore
Comments
Post a Comment