🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

vortxGE 2.0 : Self shadow

Published February 10, 2012
Advertisement
Time to start looking at self shadow and ways to cleanup the look as much as possible. Here's where I'm at so far. Shitty :-)

vortxGE3.png

If someone could point me in the right direction that would be great. Like a great book or online reference.

I also still have problems with final output as you can see. I will fix this :-) Here's the shader.



varying vec4 vColor;
varying vec2 vTexCoord;

uniform sampler2D tex_d;
uniform sampler2D tex_n;

void main(void)
{
float exposure = 1.0;
vec4 oColour;

oColour = texture2D( tex_d, vTexCoord);
oColour = 1.0 - exp2( -oColour * exposure );

gl_FragColor = oColour;
gl_FragColor.a = 1.0;
}

1 likes 2 comments

Comments

Programming020195BRook
Haha looks good to me, I couldn't help you though sadly! :|
February 12, 2012 06:29 AM
mixmaster
Its really rendering very dull. Lots of high end missing. fixing it right now.
February 13, 2012 05:24 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement

Latest Entries

vortxGE : Threads

2452 views

C++11 Threads

3150 views

My Business

2305 views

Still Alive

2116 views

vortxEDIT : video

2236 views

vortxGE : Update

6078 views

vortxEDIT : Save

1995 views
Advertisement