MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Terrain

Method Terrain

Source/Engine/Terrain/Terrain.cpp:24–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22#include "Engine/Renderer/GI/GlobalSurfaceAtlasPass.h"
23
24Terrain::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
40Terrain::~Terrain()
41{

Callers

nothing calls this directly

Calls 1

ResizeMethod · 0.45

Tested by

no test coverage detected