More FILT modes: XOR and NOT
This commit is contained in:
parent
bebe9bd8fd
commit
268158f1dd
@ -2071,8 +2071,8 @@ void GameView::OnDraw()
|
||||
else if (sample.particle.type == PT_FILT)
|
||||
{
|
||||
sampleInfo << c->ElementResolve(sample.particle.type, sample.particle.ctype);
|
||||
const char* filtModes[] = {"set colour", "AND", "OR", "subtract colour", "red shift", "blue shift", "no effect"};
|
||||
if (sample.particle.tmp>=0 && sample.particle.tmp<=6)
|
||||
const char* filtModes[] = {"set colour", "AND", "OR", "subtract colour", "red shift", "blue shift", "no effect", "XOR", "NOT"};
|
||||
if (sample.particle.tmp>=0 && sample.particle.tmp<=8)
|
||||
sampleInfo << " (" << filtModes[sample.particle.tmp] << ")";
|
||||
else
|
||||
sampleInfo << " (unknown mode)";
|
||||
|
@ -100,6 +100,10 @@ int Element_FILT::interactWavelengths(Particle* cpart, int origWl)
|
||||
}
|
||||
case 6:
|
||||
return origWl; // No change
|
||||
case 7:
|
||||
return origWl ^ filtWl; // XOR colours
|
||||
case 8:
|
||||
return (~origWl) & mask; // Invert colours
|
||||
default:
|
||||
return filtWl;
|
||||
}
|
||||
|
Reference in New Issue
Block a user