| 22 | #include "Engine/Renderer/GI/GlobalSurfaceAtlasPass.h" |
| 23 | |
| 24 | Terrain::Terrain(const SpawnParams& params) |
| 25 | : PhysicsColliderActor(params) |
| 26 | , _lodBias(0) |
| 27 | , _forcedLod(-1) |
| 28 | , _collisionLod(-1) |
| 29 | , _lodCount(0) |
| 30 | , _chunkSize(0) |
| 31 | , _scaleInLightmap(0.1f) |
| 32 | , _lodDistribution(0.6f) |
| 33 | , _boundsExtent(Vector3::Zero) |
| 34 | , _cachedScale(1.0f) |
| 35 | { |
| 36 | _drawCategory = SceneRendering::SceneDrawAsync; |
| 37 | _physicalMaterials.Resize(8); |
| 38 | } |
| 39 | |
| 40 | Terrain::~Terrain() |
| 41 | { |