From: Stuart Buchanan Date: Wed, 10 Oct 2012 18:57:16 +0000 (+0100) Subject: Change default tree-max-density-angle-deg to 30 and tree-zero-density-angle-deg to... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=81d5b651d2751d814b5751dd0c015005e6ce4106;p=simgear.git Change default tree-max-density-angle-deg to 30 and tree-zero-density-angle-deg to 45, as redommended by Thorsten Renk to account for our scenery generally rendering slopes shallower than they are IRL. --- diff --git a/simgear/scene/material/mat.cxx b/simgear/scene/material/mat.cxx index 63ee9f8c..359657e5 100644 --- a/simgear/scene/material/mat.cxx +++ b/simgear/scene/material/mat.cxx @@ -330,8 +330,8 @@ SGMaterial::read_properties(const SGReaderWriterOptions* options, tree_width = props->getDoubleValue("tree-width-m", 0.0); tree_range = props->getDoubleValue("tree-range-m", 0.0); tree_varieties = props->getIntValue("tree-varieties", 1); - cos_tree_max_density_slope_angle = cos(props->getFloatValue("tree-max-density-angle-deg", 45.0) * osg::PI/180.0); - cos_tree_zero_density_slope_angle = cos(props->getFloatValue("tree-zero-density-angle-deg", 60.0) * osg::PI/180.0); + cos_tree_max_density_slope_angle = cos(props->getFloatValue("tree-max-density-angle-deg", 30.0) * osg::PI/180.0); + cos_tree_zero_density_slope_angle = cos(props->getFloatValue("tree-zero-density-angle-deg", 45.0) * osg::PI/180.0); const SGPropertyNode* treeTexNode = props->getChild("tree-texture");