Special effects can be achieved by using bit masks on the color channels. For instance, a scene with a strong, flashing red light can be simulated by selectively masking the blue and green channels so that they are darker, and the red channel so that it is brighter. Your program can turn the effect on and off alternately for intervals to simulate flashing.
To set the plane mask, call the IDirect3DDevice3::SetRenderState method with the first parameter set to D3DRENDERSTATE_PLANEMASK and the second set to the desired plane mask.
Note The D3DRENDERSTATE_PLANEMASK render state is not supported by the software rasterizers, and is often ignored by hardware drivers. To disable writes to the color buffer by using alpha blending, set D3DRENDERSTATE_SRCBLEND to D3DBLEND_ZERO and D3DRENDERSTATE_DESTBLEND to D3DBLEND_ONE.