add nanort lib and update external git modules
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user