Stencil Shadow Volume demo

Blitz3D Forums/Blitz3D Programming/Stencil Shadow Volume demo

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.

After looking a while at the code, I must say that this technique could be a lot more flexible for *lights* than shadows.

Just change the "EntityColor shadowplane" to 255,255,255 to see what I mean: using a torchlight as an example, it just needs a cone which has it's base which is projected where the torch points to. Even using a small vertex deformed grid for scenery/character collision with the projected cone, you would obtain a very convincing effect. Though such a concept could be easily used for diffuse light effects as well, as a ceiling mounted neon which tilts slightly.