enabled more palette space; now there's ONE constant to change, too.

This commit is contained in:
Chris Forbes
2010-02-26 23:41:31 +13:00
parent eef64403f9
commit 5cac032345
6 changed files with 30 additions and 34 deletions

View File

@@ -47,12 +47,10 @@ VertexOut Simple_vp(VertexIn v) {
return o;
}
const float2 texelOffset = float2( 0, 1.0f/32.0f );
float4 Palette_fp(VertexOut f) : COLOR0 {
float4 x = tex2D(DiffuseTexture, f.Tex0.xy);
float2 p = float2( dot(x, f.ChannelMask), f.Tex0.z );
return tex2D(Palette, p + texelOffset);
return tex2D(Palette, p);
}
technique low_quality {

View File

@@ -47,12 +47,10 @@ VertexOut Simple_vp(VertexIn v) {
return o;
}
const float2 texelOffset = float2( 0, 1.0f/32.0f );
float4 Palette_fp(VertexOut f) : COLOR0 {
float4 x = tex2D(DiffuseTexture, f.Tex0.xy);
float2 p = float2( dot(x, f.ChannelMask), f.Tex0.z );
return tex2D(Palette, p + texelOffset);
return tex2D(Palette, p);
}
technique low_quality {