Files
utad-3d/data/shaders/vertex.glsl
2025-10-13 18:23:01 +02:00

12 lines
227 B
GLSL

uniform mat4 mvp;
attribute vec3 vpos;
attribute vec3 vcolor;
attribute vec2 vtexcoord;
varying vec3 fcolor;
varying vec2 ftexcoord;
void main() {
gl_Position = mvp * vec4(vpos, 1);
fcolor = vcolor;
ftexcoord = vtexcoord;
}