Exclude a mesh from a light

Blitz3D Forums/Blitz3D Programming/Exclude a mesh from a light

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

If they are using a blend mode where you can see through them (they default to add blending) then no they are not written into the z-buffer. This is why polygons with alpha transparency are sometimes rendered in the wrong order when they overlap.

I think the solution is to only render your sprites once after everything else. They will be affected by the z-buffer, they just don't affect the z-buffer themselves.