Hi, I have a 3D project with a Gridmap set up. I made the meshes in Blender and added the textures there, they are basically floors and walls. I would like to know if there is any way to apply some filter in them to toggle their textures on/off.
As in, in some cases I will want all the tiles to be meshes, and in other cases I might want to disable the visibility of some of them/or their faces (while keeping their collision shape and the visibility of the other meshes).
Is this possible? Is there any shader/material I can toggle on/off to allow this?
I can apply a shader to the meshes by doing:
shader_type spatial;
void fragment() {
ALPHA= 0.0;
}
To turn them completely transparent, but I'm not sure how to apply it to the specific meshes inside the grid.