25 lines
775 B
GLSL
25 lines
775 B
GLSL
#version 300 es
|
|
|
|
/* +------------------------------------------------------+
|
|
____/ \____ /| - Open source game framework licensed to freely use, |
|
|
\ / / | copy, modify and sell without restriction |
|
|
+--\ ^__^ /--+ | |
|
|
| ~/ \~ | | - created for <https://foam.shampoo.ooo> |
|
|
| ~~~~~~~~~~~~ | +------------------------------------------------------+
|
|
| SPACE ~~~~~ | /
|
|
| ~~~~~~~ BOX |/
|
|
+-------------*/
|
|
|
|
/* The precision declaration is required by OpenGL ES */
|
|
precision mediump float;
|
|
|
|
in vec4 ex_Color;
|
|
in vec2 UV;
|
|
uniform sampler2D myTextureSampler;
|
|
out vec4 outputColor;
|
|
|
|
void main(void)
|
|
{
|
|
outputColor = texture(myTextureSampler, UV) * ex_Color;
|
|
}
|