Just a few spelling mistakes in both the DX9 and GL shader, probably won't change anything for games, but it's best to be correct in the code
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1555 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
7b4f6ba255
commit
f2686589e9
|
@ -698,7 +698,7 @@ static void WriteStage(char *&p, int n, u32 texture_mask)
|
||||||
case TEVCMP_GR16_EQ:
|
case TEVCMP_GR16_EQ:
|
||||||
case TEVCMP_BGR24_EQ:
|
case TEVCMP_BGR24_EQ:
|
||||||
WRITE(p, " %s + (abs(dot(%s.rgb - %s.rgb, comp%s))<%f ? %s : float3(0.0f,0.0f,0.0f));\n",
|
WRITE(p, " %s + (abs(dot(%s.rgb - %s.rgb, comp%s))<%f ? %s : float3(0.0f,0.0f,0.0f));\n",
|
||||||
tevCInputTable[cc.d], tevCInputTable2[cc.a], tevCInputTable2[cc.b], cmp==TEVCMP_GR16_GT?"16":"24", epsilon8bit, tevCInputTable[cc.c]);
|
tevCInputTable[cc.d], tevCInputTable2[cc.a], tevCInputTable2[cc.b], cmp==TEVCMP_GR16_EQ?"16":"24", epsilon8bit, tevCInputTable[cc.c]);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
WRITE(p, "float3(0.0f,0.0f,0.0f);\n");
|
WRITE(p, "float3(0.0f,0.0f,0.0f);\n");
|
||||||
|
@ -742,7 +742,7 @@ static void WriteStage(char *&p, int n, u32 texture_mask)
|
||||||
case TEVCMP_GR16_EQ:
|
case TEVCMP_GR16_EQ:
|
||||||
case TEVCMP_BGR24_EQ:
|
case TEVCMP_BGR24_EQ:
|
||||||
WRITE(p, " %s + (abs(dot(%s.rgb - %s.rgb, comp%s))<%f ? %s : 0)\n",
|
WRITE(p, " %s + (abs(dot(%s.rgb - %s.rgb, comp%s))<%f ? %s : 0)\n",
|
||||||
tevAInputTable[ac.d],tevAInputTable2[ac.a], tevAInputTable2[ac.b],cmp==TEVCMP_GR16_GT?"16":"24",epsilon8bit,tevAInputTable[ac.c]);
|
tevAInputTable[ac.d],tevAInputTable2[ac.a], tevAInputTable2[ac.b],cmp==TEVCMP_GR16_EQ?"16":"24",epsilon8bit,tevAInputTable[ac.c]);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
WRITE(p, "0)\n");
|
WRITE(p, "0)\n");
|
||||||
|
|
|
@ -444,7 +444,7 @@ void WriteStage(char *&p, int n)
|
||||||
case TEVCMP_GR16_EQ:
|
case TEVCMP_GR16_EQ:
|
||||||
case TEVCMP_BGR24_EQ:
|
case TEVCMP_BGR24_EQ:
|
||||||
WRITE(p," %s + (abs(dot(%s.rgb - %s.rgb, comp%s))<%f ? %s : 0)\n",
|
WRITE(p," %s + (abs(dot(%s.rgb - %s.rgb, comp%s))<%f ? %s : 0)\n",
|
||||||
tevAInputTable[ac.d],tevAInputTable2[ac.a], tevAInputTable2[ac.b],cmp==TEVCMP_GR16_GT?"16":"24",epsilon,tevAInputTable[ac.c]);
|
tevAInputTable[ac.d],tevAInputTable2[ac.a], tevAInputTable2[ac.b],cmp==TEVCMP_GR16_EQ?"16":"24",epsilon,tevAInputTable[ac.c]);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
WRITE(p,"0)\n");
|
WRITE(p,"0)\n");
|
||||||
|
|
Loading…
Reference in New Issue