Panda3D Manual: Color Write MasksColor Write MasksColor write masks enable you to block writes to the Red, Green, Blue, or Alpha channels of the framebuffer. This is not a frequently-used capability, but it does have a few applications:
Using a color write-mask is not free. During normal rendering, each pixel written to the frame buffer requires a memory write. With a color-mask active, a memory read-modify-write cycle is needed, which is more expensive. By default, color write masks are off. Turning on the Color MaskTo enable writes to all the channels of the framebuffer, use this: bits = ColorWriteAttrib.CAlpha To disable writes to one or more channels, omit that bit. You can also use: nodePath.setAttrib(ColorWriteAttrib.make(ColorWriteAttrib.CAll)) To enable all bits. © Carnegie Mellon University 2010 |