Jump to content

April 2017 »

S M T W T F S
      1
2345678
9101112131415
16171819202122
2324252627 28 29
30      

Recent Comments

- - - - -

vortxGE 2.0 : Self shadow



4: Adsense

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 :-)

Attached Image

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;
}
 

Feb 12 2012 12:29 AM
Haha looks good to me, I couldn't help you though sadly! :|
Feb 12 2012 11:24 PM
Its really rendering very dull. Lots of high end missing. fixing it right now.

Note: GameDev.net moderates comments.