projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more db stuff
[carveJwlIkooP6JGAAIwe30JlM.git]
/
shaders
/
terrain.vs
diff --git
a/shaders/terrain.vs
b/shaders/terrain.vs
index 5bb262bc0ba07a032b20b9a7c6a446759bb144c0..db7f98033ae326ee291becfb969556d2746c0fb1 100644
(file)
--- a/
shaders/terrain.vs
+++ b/
shaders/terrain.vs
@@
-1,6
+1,18
@@
+#include "vertex_standard.glsl"
+
+uniform mat4 uPv;
uniform mat4x3 uMdl;
uniform mat4x3 uMdl;
+out vec4 aColour;
+out vec2 aUv;
+out vec3 aNorm;
+out vec3 aCo;
+
void main()
{
void main()
{
-
+ gl_Position = uPv * vec4( uMdl * vec4(a_co,1.0), 1.0 );
+ aColour = a_colour;
+ aUv = a_uv;
+ aNorm = mat3(uMdl) * a_norm;
+ aCo = a_co;
}
}