Skip to content

The color buffer slot for an offscreen render buffer should not depend on other render buffers #52

@AchimStremplat

Description

@AchimStremplat

Usecase:
In Ramses Composer while building an offscreen render target and working with it, it can easily happen that one of the offscreen render buffers becomes invalid (e. g. its size does not match anymore). This currently causes all buffers in the same render target after the invalid buffer to change their GL_COLOR_ATTACHMENT index (shift forward). For more complex rendering scenarios with more than one render buffer on a target, this can get quite confusing, as the user-defined shaders rely on specific offscreen buffers being in specific slots.

Suggestion:
It would be nice if RaCo could specify the color attachment index when setting up the render target, e. g. either if there would be an additional functions RenderTargetDescription::setNumberOfColorRenderBufferSlots(int) and RenderTargetDescription::setRenderBuffer(int colorIndex, const RenderBuffer& renderBuffer). If this is possible, empty slots could be passed on to glDrawBuffers as GL_NONE?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions