#version 300 es /* +------------------------------------------------------+ ____/ \____ /| - Open source game framework licensed to freely use, | \ / / | copy, modify and sell without restriction | +--\ ^__^ /--+ | | | ~/ \~ | | - created for | | ~~~~~~~~~~~~ | +------------------------------------------------------+ | 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; }