13 lines
242 B
Forth
13 lines
242 B
Forth
|
#version 330
|
||
|
#extension GL_ARB_separate_shader_objects : enable
|
||
|
|
||
|
layout(location=1) in vec2 fsTex;
|
||
|
layout(location=0) out vec4 target;
|
||
|
|
||
|
uniform sampler2D mainTex;
|
||
|
uniform vec4 color;
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
target = texture(mainTex, fsTex) * color;
|
||
|
}
|