Shaders?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
MasterKira
Posts: 11
Joined: Mon Feb 07, 2011 7:40 am

Shaders?

Post by MasterKira »

Before talk: an image self explaining:
Image

I have a sphere, I have a light... how to make the "atmosphere" looks like this? (I read something about shaders (in this image i think something like "gradient shaders"), but i didnt found any guide on using them :? )

Can someone help me? explaining the use of shader? (maybe with a code snippet :D)
Mel
Competition winner
Posts: 2292
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Re: Shaders?

Post by Mel »

I am not going to provide you with any shader code snippet, i will point you to a FULL shader sample!

http://irrlicht.sourceforge.net/docu/example010.html

the example 10 of the Irrlicht distribution :).

Really, there are many ways to get that kind of effect.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
Granyte
Posts: 850
Joined: Tue Jan 25, 2011 11:07 pm
Contact:

Re: Shaders?

Post by Granyte »

http://granyte.blogspot.com/2011/12/her ... -this.html

this post contains links to every information i used to create my implementation of the atmospheric scattering once you get a hand on how to make shaders work in irrlicht take a look at hexidave DX version of the scattering it's a good start if you don't need fancy options

if you do then you will rewrite it from the gl implementation of sean oneil like i did anyway good luck
Post Reply