mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-23 20:50:59 -05:00
Add a hidden "Fade" property that modifies the effective opacity to enable other functionality (closes #1970)
This commit is contained in:
@@ -140,7 +140,7 @@ RenderableToyVolume::RenderableToyVolume(const ghoul::Dictionary& dictionary)
|
||||
RenderableToyVolume::~RenderableToyVolume() {}
|
||||
|
||||
void RenderableToyVolume::initializeGL() {
|
||||
glm::vec4 color(glm::vec3(_color), _opacity);
|
||||
glm::vec4 color(glm::vec3(_color), opacity());
|
||||
_raycaster = std::make_unique<ToyVolumeRaycaster>(color);
|
||||
_raycaster->initialize();
|
||||
|
||||
@@ -197,7 +197,7 @@ void RenderableToyVolume::update(const UpdateData& data) {
|
||||
std::pow(10.f, static_cast<float>(_scalingExponent))
|
||||
);
|
||||
|
||||
glm::vec4 color(glm::vec3(_color), _opacity);
|
||||
glm::vec4 color(glm::vec3(_color), opacity());
|
||||
|
||||
_raycaster->setColor(color);
|
||||
_raycaster->setStepSize(_stepSize);
|
||||
|
||||
Reference in New Issue
Block a user