mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-20 11:28:38 -05:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user