Fake Edge Shader

Blitz3D Forums/Blitz3D Programming/Fake Edge Shader

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.

Slenkar:
I don't have a demo of my game with enabled right now, but it's pretty simple to make.

1. Make a sphere.
2. Make a texture that is black in the center and some saturated color at the edges.
3. Load said texture and set it to a spherical environment map.
4. Apply to sphere.
5. Set sphere to add blend.
6. Place in level. Voila, force shield.


It'll pretty much look like the eye of that bug up there. You can control how thick the edges are by adjusting the gradient.