X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=shaders%2Fmandelwow.vert;fp=shaders%2Fmandelwow.vert;h=0e67eda0dbe0978125073f164f24143c9409d779;hb=147dc8ea810d9be0f965b1b80a208956f944d7fc;hp=0000000000000000000000000000000000000000;hpb=be535251d3c2b9b8634a8f3e56581a2d05f248d3;p=mandelwow.git diff --git a/shaders/mandelwow.vert b/shaders/mandelwow.vert new file mode 100644 index 0000000..0e67eda --- /dev/null +++ b/shaders/mandelwow.vert @@ -0,0 +1,15 @@ +#version 100 +uniform mat4 perspective; +uniform mat4 view; +uniform mat4 model; +uniform vec2 z0; +attribute mediump vec3 position; +varying mediump vec2 c; +varying mediump vec2 z; + +void main() { + mat4 modelview = view * model; + gl_Position = perspective * modelview * vec4(position, 1.0); + c = vec2(position.x, position.y); + z = vec2(z0.x, z0.y); +}