mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 00:24:40 +00:00
Clean GLSL fragment shader out.
This commit is contained in:
parent
87f34e3c4f
commit
ed0febea39
135 changed files with 451 additions and 239 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue