2014-06-03 14:46:01 -04:00
|
|
|
uniform sampler2D tex_128;
|
|
|
|
uniform sampler2D tex_256;
|
|
|
|
uniform sampler2D tex_512;
|
2013-11-30 16:33:06 -05:00
|
|
|
|
2014-06-03 14:46:01 -04:00
|
|
|
layout (std140) uniform MatrixesData
|
|
|
|
{
|
|
|
|
mat4 ViewMatrix;
|
|
|
|
mat4 ProjectionMatrix;
|
|
|
|
mat4 InverseViewMatrix;
|
|
|
|
mat4 InverseProjectionMatrix;
|
|
|
|
mat4 ShadowViewProjMatrixes[4];
|
|
|
|
vec2 screen;
|
|
|
|
};
|
2014-02-28 11:29:05 -05:00
|
|
|
|
2014-06-03 14:46:01 -04:00
|
|
|
out vec4 FragColor;
|
2014-01-12 18:19:28 -05:00
|
|
|
|
2013-11-30 16:33:06 -05:00
|
|
|
void main()
|
|
|
|
{
|
2014-06-03 14:46:01 -04:00
|
|
|
vec2 uv = gl_FragCoord.xy / screen;
|
|
|
|
vec4 col = .125 * texture(tex_128, uv);
|
|
|
|
col += .25 * texture(tex_256, uv);
|
|
|
|
col += .5 * texture(tex_512, uv);
|
|
|
|
FragColor = vec4(col.xyz, 1.);
|
2013-11-30 16:33:06 -05:00
|
|
|
}
|