summaryrefslogtreecommitdiff
path: root/src/shaders/player.frag
diff options
context:
space:
mode:
Diffstat (limited to 'src/shaders/player.frag')
-rw-r--r--src/shaders/player.frag14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/shaders/player.frag b/src/shaders/player.frag
new file mode 100644
index 0000000..5d329fa
--- /dev/null
+++ b/src/shaders/player.frag
@@ -0,0 +1,14 @@
+precision mediump float;
+varying vec2 textureuv; // uv
+uniform sampler2D textures;
+uniform sampler2D emissives;
+uniform sampler2D normals;
+varying mat3 light1; // position, color, intensity-fadetime-?
+varying vec4 v_color;
+void main() {
+ vec2 uv = textureuv;
+ //gl_FragColor = texture2D(textures,uv);// + vec4(uv.xy / 4.,0.,1.);
+ gl_FragColor = vec4(uv.xy / 1., 0., max(uv.x, uv.y));
+ //gl_FragColor = texture2D(textures,screen_intersection.xy);
+
+}