projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update to new shader system
[carveJwlIkooP6JGAAIwe30JlM.git]
/
shaders
/
water.vs
diff --git a/shaders/water.vs
b/shaders/water.vs
new file mode 100644
(file)
index 0000000..
dd8b661
--- /dev/null
+++ b/
shaders/water.vs
@@ -0,0
+1,13
@@
+#include "vertex_standard.glsl"
+
+uniform mat4 uPv;
+uniform mat4x3 uMdl;
+
+out vec2 aUv;
+
+void main()
+{
+ vec3 world_pos = uMdl * vec4( a_co, 1.0 );
+ gl_Position = uPv * vec4(world_pos,1.0);
+ aUv = vec2(world_pos[0],world_pos[2])*0.15;
+}