Apply the hue, value, saturation, and gamma values from the renderengine to screenspace renderables. Change the screenspace's own gamma value into an offset (#3293)

* Apply the hue, value, saturation, and gamma values from the renderengine to screenspace renderables.  Change the screenspace's own gamma value into an offset

* Make it clearer that the gamma correction is now an offset
This commit is contained in:
Alexander Bock
2024-06-04 16:28:52 +02:00
committed by GitHub
parent 09a40f62dc
commit 6edea5cae7
12 changed files with 67 additions and 34 deletions
@@ -104,7 +104,7 @@ bool ScreenSpaceFramebuffer::deinitializeGL() {
return true;
}
void ScreenSpaceFramebuffer::render(float blackoutFactor) {
void ScreenSpaceFramebuffer::render(const RenderData& renderData) {
const glm::vec2& resolution = global::windowDelegate->currentDrawBufferResolution();
const glm::vec4& size = _size.value();
@@ -144,7 +144,7 @@ void ScreenSpaceFramebuffer::render(float blackoutFactor) {
glm::vec3((1.f / xratio), (1.f / yratio), 1.f)
);
const glm::mat4 modelTransform = globalRotation*translation*localRotation*scale;
draw(modelTransform, blackoutFactor);
draw(modelTransform, renderData);
}
}