Add the ability to feather borders of screenspace renderables

This commit is contained in:
Alexander Bock
2024-08-13 13:37:39 +02:00
parent 5d2186f11d
commit 43ada7fa1f
3 changed files with 23 additions and 1 deletions

View File

@@ -140,6 +140,7 @@ protected:
// Border
properties::FloatProperty _borderWidth;
properties::Vec3Property _borderColor;
properties::BoolProperty _borderFeather;
properties::FloatProperty _scale;
properties::FloatProperty _gammaOffset;
@@ -149,7 +150,7 @@ protected:
glm::ivec2 _objectSize = glm::ivec2(0);
UniformCache(color, opacity, blackoutFactor, hue, value, saturation, mvpMatrix, tex,
backgroundColor, gamma, borderColor, borderWidth) _uniformCache;
backgroundColor, gamma, borderColor, borderWidth, borderFeather) _uniformCache;
std::unique_ptr<ghoul::opengl::ProgramObject> _shader;
};