Clean GLSL fragment shader out.

This commit is contained in:
LuisAntonRebollo 2014-11-30 22:56:30 +01:00
parent 87f34e3c4f
commit ed0febea39
135 changed files with 451 additions and 239 deletions

View file

@ -31,6 +31,7 @@ uniform float brightScalar;
const vec3 LUMINANCE_VECTOR = vec3(0.3125f, 0.6154f, 0.0721f);
out vec4 OUT_col;
void main()
{
@ -50,5 +51,5 @@ void main()
col *= brightScalar;
}
OUT_FragColor0 = col;
OUT_col = col;
}

View file

@ -36,6 +36,8 @@ uniform float weight;
uniform float decay;
uniform float exposure;
out vec4 OUT_col;
void main()
{
vec4 texCoord = vec4( IN_uv0.xy, 0, 0 );
@ -55,7 +57,7 @@ void main()
if ( samples <= 0 )
{
OUT_FragColor0 = bbCol;
OUT_col = bbCol;
return;
}
@ -88,5 +90,5 @@ void main()
//return bbCol * decay;
// Output final color with a further scale control factor.
OUT_FragColor0 = saturate( amount ) * vec4( color * exposure, 1 ) + bbCol;
OUT_col = saturate( amount ) * vec4( color * exposure, 1 ) + bbCol;
}