0 votes

Hey godot users!
I would call myself inexperienced, but I made a simple mario and a simple zelda style game.
So I am going for 3D now and I was wondering how to make something like a dirt shader (overlay style) and delete (or make invisible) the parts of it where a raycast hit the collision ?
For now I have "collider.queue_free()" when the raycast collides with something in my dirt group, but this get rid of the full object.

So I think I want a shader on a texture, and when the raycast hits I want to get rid of the shader where the raycast colliders (maybe +10pixels), but it should stay on the rest, how do I archive this ?

Thanks in advance,
ADeer :)

Godot version 3.4.stable.offical-206ba70f4
in Engine by (12 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.