I use a shader to toggle on and off the roof of a house.
if (is_roof_pixel) {
ALPHA = 0.0;
}
The problem is this lets sunlight in.
Is there a way to hide the roof without letting in directional light?
Maybe there's some way to hide the mesh after it draws its shadow?
I also tried discard
as well but no luck.
Blender has a visibility option that allows you to hide meshes for specific cameras, maybe theres a similar feature in godot?