mcbeth said:
Darklord said:
EDIT #2:
Seems to have been a classpath error. Umm.. err... Nevermind...
no worries man, happens to me too :)
one thing u should know though, is that it doesn't always play nice with large planar surfaces,use this portion of the shader code below adjusts that lower values makes the silhuette stuff cause objects like boxes and terrain to be almost completely black, except for regions where non-planar objects have the toon effects applied,...you'll get a kinda spot light effect. 1.98 works ok-ish if u are applying the rootNode, but it still looks kinda odd, looks good on characters and curvy surfaces though.
if( diffuse < 0.25 )
//gl_FragColor *= 1.98 * gl_LightSource[0].ambient;
gl_FragColor *=1.98 * gl_LightSource[0].diffuse;
I am no glsl expert, in fact, I still dont really know glsl XD, so this thing probably tightened up plenty more
Thanks! I'll keep it in mind!
Right now im thrilled that I got it to work. It looks very sweet as you can see at the screenshot I attached. Most people that see it though, generally say that the non-cartoon one looks better. I blame that for not having a cartoonish scene which blends perfectly with the shader-style.
Anyways.. Thanks alot!
