f0b3cbfcd0
I have a .5ms win here...
25 lines
521 B
GLSL
25 lines
521 B
GLSL
uniform sampler2D tex_128;
|
|
uniform sampler2D tex_256;
|
|
uniform sampler2D tex_512;
|
|
|
|
layout (std140) uniform MatrixesData
|
|
{
|
|
mat4 ViewMatrix;
|
|
mat4 ProjectionMatrix;
|
|
mat4 InverseViewMatrix;
|
|
mat4 InverseProjectionMatrix;
|
|
mat4 ShadowViewProjMatrixes[4];
|
|
vec2 screen;
|
|
};
|
|
|
|
out vec4 FragColor;
|
|
|
|
void main()
|
|
{
|
|
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.);
|
|
}
|