# Fake god ray solution. How to perform a boolean operation and extend the affected area beyond the cut out object's geometry

I’ll explain my end goal then extrapolate.

I am wanting to make a fake volumetric god ray light object using an emissive volumetric shader material. But one that interacts with other meshes the same way an actual light would.
So the mesh object would be disrupted when it intersects with another mesh, like a Boolean operation. But a Boolean operation that continues to cut out the object on a certain axis past it intersection point. So it’s like a Boolean mixed with a knife project or something. Does this make sense?

I made a quick scene here. It works fine except the fake light ray pick back up one the other side of the box on the floor.
I would like the “god ray” mesh to be interrupted once it comes in contact with the box on the floor, like a Boolean, but continue to be affected on one axis, as if the box’s geometry is extruded along that same axis.

I’ve explored using line art modifier, I’ve tried a hack job using a mesh trails add-on, I’ve considered applying a Boolean then cleaning up but that would be way too laborious.

I bet there’s a way in Geometry Nodes to do this but I’m still in basic tutorial land with those. I’ve been trying different things for a few weeks off and on and can’t crack this. I feel strongly this could be a wicked solution for a light weight fake god ray solution. One that works with animated scenes/ objects. I bet someone has done this or it’s something in my blind spot.

• This is roughly possible, but you're going to have problems with topology-- you will only ever approach the proper occlusion, and that's by using tons of vertices for your godray mesh. Are tons of vertices a deal-breaker? Commented Oct 20, 2022 at 20:06
• I guess that depends on what a ton is. what is your idea on how I can pull off excluding those areas?
– Ferg
Commented Oct 20, 2022 at 21:40
• If it used a bool type of operation I dont see why it would cause any extra strain than a normal bool. But maybe youre thinking some other way. I've tried to approach this problems from the angles I can think of
– Ferg
Commented Oct 20, 2022 at 21:43
• Also, im not looking to make it look as accurate as real volume lighting. in fact, I would probably use it for more stylized animations.
– Ferg
Commented Oct 20, 2022 at 22:23