Search Results for

    Show / Hide Table of Contents

    Class TerrainManager

    Terrain service used to unify and provide data sharing for various terrain instances and related logic.

    Inheritance
    TerrainManager
    Assembly: FlaxEngine.dll
    File: Engine/Terrain/TerrainManager.h
    Syntax
    public class TerrainManager

    Methods

    GetChunkGeometry(DrawCall& drawCall, int32 chunkSize, int32 lodIndex)

    Gets the chunk geometry buffers for the given chunk size (after LOD reduction).

    Declaration
    public static bool GetChunkGeometry(DrawCall& drawCall, int32 chunkSize, int32 lodIndex)
    Parameters
    DrawCall drawCall

    The draw call to setup (sets the geometry data such as vertex and index buffers to use).

    int32 chunkSize

    The chunk size (on chunk edge) for the LOD0 chunk. Must be equal or higher than 3.

    int32 lodIndex

    The chunk LOD.

    Returns
    bool

    True if failed to get it, otherwise false.

    GetDefaultTerrainMaterial()

    Gets the default terrain material to be used for rendering.

    Declaration
    public static MaterialBase* GetDefaultTerrainMaterial()
    Returns
    MaterialBase

    The default material for terrain.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat