"RED channel masked texture" means the texture that is controlled by the red-channel of the first texture (here it is the third texture).
To get 3 textures blend together set the GREENMASK flag (eg. just leave the "#define GREENMASK" line uncommented), so you get another texture you can controll through the green-channel.