| View previous topic :: View next topic |
| Author |
Message |
Tequila Smokin' Gun

Joined: 15 Nov 2007 Posts: 669 Location: France
|
Posted: Sat Dec 19, 2009 10:13 pm Post subject: GLSL programs addon |
|
|
I created an addon on moddb if anyone want to try to tune FBO effects on the GLSL programs side.
Check it out there: GLSL programs for FBO effects
For example, here is a replacement for glslRotoscopeZ GLSL program:
| Code: | uniform vec2 texelSize;
uniform sampler2D srcSampler;
uniform sampler2D depthSampler;
void main()
{
float fragsobel = sobel(depthSampler, gl_TexCoord[0].xy, texelSize);
vec4 final_color = texture(srcSampler, gl_TexCoord[0].xy);
fragsobel = clamp(fragsobel, 0.0, 1.0);
gl_FragColor = final_color * (1.0 - fragsobel);
} |
It only removes the toon color call but keep the edge detection... so edges are drawn in black like in that screenshot:
 |
|
| Back to top |
|
 |
L3th4l Smokin' Gun

Joined: 18 Jun 2005 Posts: 1948 Location: Binghamton, NY. USA
|
Posted: Sat Dec 19, 2009 10:16 pm Post subject: |
|
|
| Now that's awesome. Looks like the game Borderlands |
|
| Back to top |
|
 |
ReD NeCKersoN Smokin' Gun

Joined: 27 Mar 2002 Posts: 2927 Location: VA, USA
|
Posted: Sat Dec 19, 2009 11:06 pm Post subject: |
|
|
Haha! More eye candy from Tequila!  _________________
 |
|
| Back to top |
|
 |
=Chico= Tester

Joined: 16 Apr 2005 Posts: 101 Location: North Carolina
|
Posted: Sat Dec 19, 2009 11:11 pm Post subject: |
|
|
yea - this will be great for people that like the effect but are having problems with areas being too dark like I am. Thanks! Looking forward to trying it out!  |
|
| Back to top |
|
 |
Tequila Smokin' Gun

Joined: 15 Nov 2007 Posts: 669 Location: France
|
Posted: Sun Dec 20, 2009 5:50 am Post subject: |
|
|
| =Chico= wrote: | yea - this will be great for people that like the effect but are having problems with areas being too dark like I am. Thanks! Looking forward to trying it out!  |
Tell us if you find better toon color balance !
| ReD NeCKersoN wrote: | Haha! More eye candy from Tequila!  |
Ha ha! More to come  |
|
| Back to top |
|
 |
|