- [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:
2024-06-27 12:21:49 +02:00
parent 0efbe28bd6
commit 6afca2f2a6
3 changed files with 16 additions and 9 deletions

View File

@@ -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);
}