diff --git a/libs/anari_test_scenes/scenes/demo/gravity_spheres_volume.cpp b/libs/anari_test_scenes/scenes/demo/gravity_spheres_volume.cpp index 42e1d090..92ef4d65 100644 --- a/libs/anari_test_scenes/scenes/demo/gravity_spheres_volume.cpp +++ b/libs/anari_test_scenes/scenes/demo/gravity_spheres_volume.cpp @@ -121,7 +121,7 @@ void GravityVolume::commit() anari::commitParameters(d, field); auto volume = anari::newObject(d, "transferFunction1D"); - anari::setAndReleaseParameter(d, volume, "field", field); + anari::setAndReleaseParameter(d, volume, "value", field); { std::vector colors; diff --git a/libs/helide/scene/volume/TransferFunction1D.cpp b/libs/helide/scene/volume/TransferFunction1D.cpp index 9668b8d4..0d1bc1d2 100644 --- a/libs/helide/scene/volume/TransferFunction1D.cpp +++ b/libs/helide/scene/volume/TransferFunction1D.cpp @@ -18,7 +18,7 @@ void TransferFunction1D::commit() if (m_field) m_field->removeCommitObserver(this); - m_field = getParamObject("field"); + m_field = getParamObject("value"); if (!m_field) { reportMessage(ANARI_SEVERITY_WARNING, "no spatial field provided to transferFunction1D volume");