Radeon ProRender

Gamma Post Process Effect

Gamma for rendering can be easily change with a context parameter.

Just call:

rprContextSetParameterByKey1f(m_context, RPR_CONTEXT_DISPLAY_GAMMA , xxx );

with the value that you want.

The gamma operation will be done inside the resolved framebuffer (generated with rprContextResolveFrameBuffer()).

Also make sure to use FALSE as the last argument of rprContextResolveFrameBuffer() because we don’t want a simple normalization: we also want to apply the display gamma.

Examples of rendering gamma usage can be found in common.cpp used in Material demo.