silly lighting idea

Blitz3D Forums/Blitz3D Programming/silly lighting idea

1. Make a quad that is so big it covers the whole screen and then some.

2. Parent this quad to the camera.

3. Texture the quad with a texture that is black at the edges with a circle of brightness in the middle.

4. Set texture when loading to enable U and V clamp.

5. Set quad to multiply blend.

6. Scale texture down until circle of light is at desired size.

7. Use mouse cursor position to adjust texture position. This will move the circle with the mouse cursor.


That's your basic 2D flashlight. But just parenting a spotlight to the camera would look more realistic.