summaryrefslogtreecommitdiff
path: root/src/phong.vert
diff options
context:
space:
mode:
Diffstat (limited to 'src/phong.vert')
-rwxr-xr-xsrc/phong.vert24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/phong.vert b/src/phong.vert
new file mode 100755
index 0000000..4e7ca2e
--- /dev/null
+++ b/src/phong.vert
@@ -0,0 +1,24 @@
+uniform mat4 mvp;
+uniform mat4 mv;
+
+attribute vec4 normal;
+attribute vec2 uv;
+
+/* Normal transformed to eye space.
+ */
+varying vec4 normal_es;
+
+/* Vertex position transformed to eye space.
+ */
+varying vec4 position_es;
+
+void main(void)
+{
+ gl_Position = mvp * gl_Vertex;
+
+ /* FINISHME: Calculate normal_es.
+ */
+
+ /* FINISHME: Calculate position_es.
+ */
+}