Skip to content

Commit

Permalink
Support setting heightmap pos (#1054)
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
  • Loading branch information
iche033 authored Sep 27, 2021
1 parent b286a57 commit 66c1efd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rendering/SceneManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ rendering::GeometryPtr SceneManager::LoadGeometry(const sdf::Geometry &_geom,
rendering::HeightmapDescriptor descriptor;
descriptor.SetData(data);
descriptor.SetSize(_geom.HeightmapShape()->Size());
descriptor.SetPosition(_geom.HeightmapShape()->Position());
descriptor.SetSampling(_geom.HeightmapShape()->Sampling());

for (uint64_t i = 0; i < _geom.HeightmapShape()->TextureCount(); ++i)
Expand Down

0 comments on commit 66c1efd

Please sign in to comment.