- [FIX] glViewport() s'ha de fixar quan estem treballant contra la pantalla, al final
- [FIX] invertida la textura en l'eix Y
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
#version 330 core
|
||||
out vec4 FragColor;
|
||||
|
||||
in vec4 vertexColor; // the input variable from the vertex shader (same name and same type)
|
||||
|
||||
uniform sampler2D tex0;
|
||||
|
||||
varying vec4 v_color; // the input variable from the vertex shader (same name and same type)
|
||||
varying vec2 v_texCoord;
|
||||
|
||||
void main()
|
||||
{
|
||||
FragColor = vertexColor;
|
||||
gl_FragColor = texture2D(tex0, v_texCoord);
|
||||
}
|
||||
Reference in New Issue
Block a user