vkmEngine 1.0.15
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
Vkm::Engine::Exposure::Adaptation Class Reference

The adapted stops across frames: a backend feeds it each histogram it reads back. More...

#include <exposure.h>

Public Member Functions

float update (const uint32_t *newest, float seconds, const RenderSettings &settings)
 The stops this frame is exposed by, RenderSettings::exposure included.
void forget ()
 Take the next read whole, as for a replaced world; the stops hold until it comes.

Detailed Description

The adapted stops across frames: a backend feeds it each histogram it reads back.

Takes the first read whole, so a view does not fade in from the authored exposure. A frame read with nothing lit keeps the last target.

Member Function Documentation

◆ update()

float Vkm::Engine::Exposure::Adaptation::update ( const uint32_t * newest,
float seconds,
const RenderSettings & settings )

The stops this frame is exposed by, RenderSettings::exposure included.

With autoExposure off, exposure alone, and the next read is taken whole again.

Parameters
newestThe newest histogram read back since the last frame; none if none was.
secondsWall-clock time since the last frame.
settingsThe frame's.

The documentation for this class was generated from the following file: