Changed the Camera::BufferComponent::COLOR_BUFFER0 from being equal to COLOR_BUFFER
to being COLOR_BUFFER+1 to enable differentation between non MRT and MRT paths.
This commit is contained in:
parent
4d4a75e818
commit
3e94d93a66
@ -311,14 +311,14 @@ class OSG_EXPORT Camera : public Transform, public CullSettings
|
||||
DEPTH_BUFFER,
|
||||
STENCIL_BUFFER,
|
||||
COLOR_BUFFER,
|
||||
COLOR_BUFFER0 = COLOR_BUFFER,
|
||||
COLOR_BUFFER1 = COLOR_BUFFER+1,
|
||||
COLOR_BUFFER2 = COLOR_BUFFER+2,
|
||||
COLOR_BUFFER3 = COLOR_BUFFER+3,
|
||||
COLOR_BUFFER4 = COLOR_BUFFER+4,
|
||||
COLOR_BUFFER5 = COLOR_BUFFER+5,
|
||||
COLOR_BUFFER6 = COLOR_BUFFER+6,
|
||||
COLOR_BUFFER7 = COLOR_BUFFER+7
|
||||
COLOR_BUFFER0,
|
||||
COLOR_BUFFER1 = COLOR_BUFFER0+1,
|
||||
COLOR_BUFFER2 = COLOR_BUFFER0+2,
|
||||
COLOR_BUFFER3 = COLOR_BUFFER0+3,
|
||||
COLOR_BUFFER4 = COLOR_BUFFER0+4,
|
||||
COLOR_BUFFER5 = COLOR_BUFFER0+5,
|
||||
COLOR_BUFFER6 = COLOR_BUFFER0+6,
|
||||
COLOR_BUFFER7 = COLOR_BUFFER0+7
|
||||
};
|
||||
|
||||
void attach(BufferComponent buffer, GLenum internalFormat);
|
||||
|
@ -338,6 +338,7 @@ const char* Camera_getBufferComponentStr(Camera::BufferComponent buffer)
|
||||
case (osg::Camera::DEPTH_BUFFER) : return "DEPTH_BUFFER";
|
||||
case (osg::Camera::STENCIL_BUFFER) : return "STENCIL_BUFFER";
|
||||
case (osg::Camera::COLOR_BUFFER) : return "COLOR_BUFFER";
|
||||
case (osg::Camera::COLOR_BUFFER0) : return "COLOR_BUFFER0";
|
||||
case (osg::Camera::COLOR_BUFFER1) : return "COLOR_BUFFER1";
|
||||
case (osg::Camera::COLOR_BUFFER2) : return "COLOR_BUFFER2";
|
||||
case (osg::Camera::COLOR_BUFFER3) : return "COLOR_BUFFER3";
|
||||
|
Loading…
Reference in New Issue
Block a user