TreeFieldRenderSpecDict

From The Colonists
Jump to navigation Jump to search

This entry in render.json allows scaling and offset of TreeField assets

See Orchard and CocoaFarm. Example entry in render.json
{

 "treeFieldRenderSpecDict": {
   "9": {   // treefield ID
     "minScale": 1.0, // minimum random scaling of 3D asset for any individual tree
     "maxScale": 1.0, // maximum random scaling of 3D asset for any individual tree
     "centreOffsetRange": {
       "x": 0.1,  // maximum random X offset of 3D asset for any individual tree
       "y": 0.1  // maximum random Y offset of 3D asset for any individual tree
     }
   }
 },

}