summaryrefslogtreecommitdiff
path: root/src/phong.frag
diff options
context:
space:
mode:
Diffstat (limited to 'src/phong.frag')
-rwxr-xr-xsrc/phong.frag20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/phong.frag b/src/phong.frag
new file mode 100755
index 0000000..3385f68
--- /dev/null
+++ b/src/phong.frag
@@ -0,0 +1,20 @@
+varying vec4 normal_es;
+varying vec4 position_es;
+varying vec2 texcoord;
+
+/* Specular exponent.
+ */
+uniform float s;
+
+/* Position of the light in eye-space.
+ */
+const vec4 light_es = vec4(0.0, 3.0, 0.0, 1.0);
+
+void main(void)
+{
+ /* FINISHME: Calculate lighting.
+ */
+ vec4 color = vec4(1.0, 0.0, 0.0, 1.0);
+
+ gl_FragColor = color;
+}