Debian Codegraph @

tests/manual/exampleresources/assets/gltf/wine/wine0VS.glsl

raw
1 precision highp float;
2 attribute vec3 a_position;
3 attribute vec3 a_normal;
4 varying vec3 v_normal;
5 uniform mat3 u_normalMatrix;
6 uniform mat4 u_modelViewMatrix;
7 uniform mat4 u_projectionMatrix;
8 attribute vec2 a_texcoord0;
9 varying vec2 v_texcoord0;
10 void main(void) {
11 vec4 pos = u_modelViewMatrix * vec4(a_position,1.0);
12 v_normal = u_normalMatrix * a_normal;
13 v_texcoord0 = a_texcoord0;
14 gl_Position = u_projectionMatrix * pos;
15 }