Independent color write masks

Started by
1 comment, last by VirtualJ 18 years, 1 month ago
I am implementing MRT by FBOs, I do not know whether OGL provides independent color write masks. For example, I only want to write the RED channel of first render target and GREEN channel of second render target. In DirectX, this can be impleneted by SetRenderState(D3DRS_COLORWRITEENABLE, D3DCOLORWRITEENABLE_RED); SetRenderState(D3DRS_COLORWRITEENABLE1, D3DCOLORWRITEENABLE_GREEN); Is there any similar function in OGL?
Advertisement
yes with a lot less code
glColorMask( bool, bool, bool, bool );
I know glColorMask(). But in the context of Multiple Rendering Targets, how to use it?

This topic is closed to new replies.

Advertisement