projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
accommodate inspector change
[carveJwlIkooP6JGAAIwe30JlM.git]
/
shaders
/
model_gate.vs
1
layout (location=0) in vec3 a_co;
2
layout (location=1) in vec3 a_norm;
3
layout (location=2) in vec2 a_uv;
4
5
uniform mat4 uPv;
6
uniform mat4x3 uMdl;
7
8
out vec3 aNorm;
9
out vec2 aUv;
10
out vec3 aCo;
11
12
void main()
13
{
14
vec3 world_pos = uMdl * vec4( a_co, 1.0 );
15
gl_Position = uPv * vec4(world_pos,1.0);
16
17
aNorm = a_norm;
18
aCo = world_pos;
19
aUv = a_uv;
20
}