summaryrefslogtreecommitdiff
path: root/src/rend2/glsl/generic_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/rend2/glsl/generic_fp.glsl
parentc1ad10c57be23f89f658a13729e4349b400a8734 (diff)
renderer -> renderergl1, rend2 -> renderergl2
Diffstat (limited to 'src/rend2/glsl/generic_fp.glsl')
-rw-r--r--src/rend2/glsl/generic_fp.glsl43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/rend2/glsl/generic_fp.glsl b/src/rend2/glsl/generic_fp.glsl
deleted file mode 100644
index dea52e06..00000000
--- a/src/rend2/glsl/generic_fp.glsl
+++ /dev/null
@@ -1,43 +0,0 @@
-uniform sampler2D u_DiffuseMap;
-
-#if defined(USE_LIGHTMAP)
-uniform sampler2D u_LightMap;
-
-uniform int u_Texture1Env;
-#endif
-
-varying vec2 var_DiffuseTex;
-
-#if defined(USE_LIGHTMAP)
-varying vec2 var_LightTex;
-#endif
-
-varying vec4 var_Color;
-
-
-void main()
-{
- vec4 color = texture2D(u_DiffuseMap, var_DiffuseTex);
-#if defined(USE_LIGHTMAP)
- vec4 color2 = texture2D(u_LightMap, var_LightTex);
- #if defined(RGBE_LIGHTMAP)
- color2.rgb *= exp2(color2.a * 255.0 - 128.0);
- color2.a = 1.0;
- #endif
-
- if (u_Texture1Env == TEXENV_MODULATE)
- {
- color *= color2;
- }
- else if (u_Texture1Env == TEXENV_ADD)
- {
- color += color2;
- }
- else if (u_Texture1Env == TEXENV_REPLACE)
- {
- color = color2;
- }
-#endif
-
- gl_FragColor = color * var_Color;
-}