add nanort lib and update external git modules

This commit is contained in:
2019-01-08 16:54:05 +01:00
parent 1c8ace73c9
commit 81f51e2be6
10 changed files with 28 additions and 7 deletions

View File

@@ -104,7 +104,7 @@ void NodePanelGrid::init_controls()
auto sz = m_hm_preview->tex.size();
m_hm_preview->SetAspectRatio(sz.x / sz.y);
m_hm_plane.create(1, 1, m_hm_image,
m_groud_resolution->get_value() * 5.f, m_hm_height->get_value());
m_groud_resolution->get_value() * 5.f, get_height());
m_hm_preview->SetHeight(100);
}
};
@@ -122,7 +122,7 @@ void NodePanelGrid::init_controls()
float NodePanelGrid::get_height() const
{
return glm::pow(m_hm_height->get_value() - 0.5f, 3.f) * 10.f;
return -glm::pow(m_hm_height->get_value() - 0.5f, 3.f) * 10.f;
}
float NodePanelGrid::get_offset() const