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

No files matched your search

+6 -5
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);
}