Remove duplication between world/chrome shaders.

This commit is contained in:
Paul Chote
2013-02-23 09:53:46 +13:00
parent 35a149ea87
commit a166815348
16 changed files with 8 additions and 179 deletions

8
glsl/shp.frag Normal file
View File

@@ -0,0 +1,8 @@
uniform sampler2D DiffuseTexture, Palette;
void main()
{
vec4 x = texture2D(DiffuseTexture, gl_TexCoord[0].st);
vec2 p = vec2( dot(x, gl_TexCoord[1]), gl_TexCoord[0].p );
gl_FragColor = texture2D(Palette,p);
}