]> git.mxchange.org Git - simgear.git/commitdiff
Change default tree-max-density-angle-deg to 30 and tree-zero-density-angle-deg to...
authorStuart Buchanan <stuart_d_buchanan@yahoo.co.uk>
Wed, 10 Oct 2012 18:57:16 +0000 (19:57 +0100)
committerStuart Buchanan <stuart_d_buchanan@yahoo.co.uk>
Wed, 10 Oct 2012 18:57:16 +0000 (19:57 +0100)
simgear/scene/material/mat.cxx

index 63ee9f8c67ad144f689133b6f8a4590b8ab48b1f..359657e5a3a735150f5b2944bf660b08f8aa0136 100644 (file)
@@ -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");