This commit is contained in:
albrut committed 2025-03-01 11:44:31 +06:00
1 parent 0fd42529c7
commit 8d8843cb11
8 files changed
+67 -30

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
//----------- Vertex shader
attribute vec3 vPosition;
attribute vec2 vTexCoord;
varying vec2 texCoord;
uniform mat4 ProjectionModelViewMatrix;
void main()
{
gl_Position = ProjectionModelViewMatrix * vec4(vPosition.xyz, 1.0);
texCoord = vTexCoord;
}
//------------- Fragment shader
In windows it is ok. In linux, error: Failed to compile fragment shader code!