Add gamma correction to screen space renderable (SSR) shader, property for SSR and default value gamma = 2.2 for sky browser display copies

This commit is contained in:
Ylva Selling
2022-06-21 10:47:44 -04:00
parent 1511d85d9f
commit d23969b8d3
4 changed files with 21 additions and 4 deletions
@@ -130,6 +130,7 @@ protected:
properties::Vec3Property _localRotation;
properties::FloatProperty _scale;
properties::FloatProperty _gamma;
properties::Vec3Property _multiplyColor;
properties::Vec4Property _backgroundColor;
properties::FloatProperty _opacity;
@@ -137,7 +138,7 @@ protected:
properties::TriggerProperty _delete;
glm::ivec2 _objectSize = glm::ivec2(0);
UniformCache(color, opacity, mvp, texture, backgroundColor) _uniformCache;
UniformCache(color, opacity, mvp, texture, backgroundColor, gamma) _uniformCache;
std::unique_ptr<ghoul::opengl::ProgramObject> _shader;
};