summaryrefslogtreecommitdiff
path: root/src/renderergl2/glsl/dlight_fp.glsl
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2013-02-15 23:46:37 +0000
committerTim Angus <tim@ngus.net>2013-02-16 21:55:58 +0000
commit1fba10104e76e937eeac60bc207a74012ab936dc (patch)
tree7bcb5507cd1aa13e6f07b74c008e9391abbf26ae /src/renderergl2/glsl/dlight_fp.glsl
parentc1ad10c57be23f89f658a13729e4349b400a8734 (diff)
renderer -> renderergl1, rend2 -> renderergl2
Diffstat (limited to 'src/renderergl2/glsl/dlight_fp.glsl')
-rw-r--r--src/renderergl2/glsl/dlight_fp.glsl12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/renderergl2/glsl/dlight_fp.glsl b/src/renderergl2/glsl/dlight_fp.glsl
new file mode 100644
index 00000000..8ffca5b9
--- /dev/null
+++ b/src/renderergl2/glsl/dlight_fp.glsl
@@ -0,0 +1,12 @@
+uniform sampler2D u_DiffuseMap;
+
+varying vec2 var_Tex1;
+varying vec4 var_Color;
+
+
+void main()
+{
+ vec4 color = texture2D(u_DiffuseMap, var_Tex1);
+
+ gl_FragColor = color * var_Color;
+}