BabylonJS / Extensions

Extensions for Babylon.js
177 stars 157 forks source link

change to 4 booleans to set LOD by terrain side #146

Closed jbousquie closed 5 years ago

jbousquie commented 5 years ago

The boolean properties .LODPositiveX, .LODNegativeX, .LODPositiveZ and .LODNegativeZ will allow/prevent to compute the perimetric LOD on right/left and upper/lower edges.
They can be set at any time (default true).

terrain.LODPositiveX = false; // stops the perimetric LOD computation on the terrain right edge
terrain.LODNegativeX = false; // stops the perimetric LOD computation on the terrain left edge
terrain.LODNegativeZ = false; // stops the perimetric LOD computation on the terrain upper edge
// now the perimetric is computed only for the upper edge, so only far away straight ahead

They replace both former properties in the previous commit