Search Results for

    Show / Hide Table of Contents

    Class SceneLightmapsData

    Shadows Of Mordor static lighting data container (used per scene).

    Inheritance
    SceneLightmapsData
    Assembly: FlaxEngine.dll
    File: Engine/Level/Scene/SceneLightmapsData.h
    Syntax
    public class SceneLightmapsData

    Constructors

    ~SceneLightmapsData()

    Finalizes an instance of the StaticLightManager class.

    Declaration
    public ~SceneLightmapsData()

    SceneLightmapsData(Scene* scene)

    Initializes a new instance of the StaticLightManager class.

    Declaration
    public SceneLightmapsData(Scene* scene)
    Parameters
    Scene scene

    The parent scene.

    Methods

    ClearLightmaps()

    Clear baked lightmaps data

    Declaration
    public void ClearLightmaps()

    GetCachedLightmapPath(String* result, int32 lightmapIndex, int32 textureIndex)

    Gets name for lightmap texture asset

    Declaration
    public void GetCachedLightmapPath(String* result, int32 lightmapIndex, int32 textureIndex)
    Parameters
    String result

    Result path

    int32 lightmapIndex

    Lightmap index

    int32 textureIndex

    Lightmap texture index

    GetCacheFolder(String* result)

    Gets path to the lightmaps cache folder

    Declaration
    public void GetCacheFolder(String* result)
    Parameters
    String result

    Result path

    GetLightmap(int32 index)

    Gets lightmap at index

    Declaration
    public Lightmap* GetLightmap(int32 index)
    Parameters
    int32 index

    Lightmap index

    Returns
    Lightmap

    Lightmap or null if missing

    GetLightmaps()

    Gets lightmaps array

    Declaration
    public Array<Lightmap* >* GetLightmaps() const
    Returns
    Array<Lightmap >

    Lightmaps

    GetReadyLightmap(int32 index)

    Gets loaded lightmap at index

    Declaration
    public FLAXENGINE_API Lightmap* GetReadyLightmap(int32 index)
    Parameters
    int32 index

    Lightmap index

    Returns
    FLAXENGINE_API Lightmap

    Lightmap or null if missing or not ready

    GetScene()

    Declaration
    public Scene* GetScene() const
    Returns
    Scene

    LoadLightmaps(Array<SavedLightmapInfo>& lightmaps)

    Loads the lightmaps data.

    Declaration
    public void LoadLightmaps(Array<SavedLightmapInfo>& lightmaps)
    Parameters
    Array<SavedLightmapInfo> lightmaps

    The serialized lightmaps info.

    SaveLightmaps(Array<SavedLightmapInfo>& lightmaps)

    Saves the lightmaps data.

    Declaration
    public void SaveLightmaps(Array<SavedLightmapInfo>& lightmaps)
    Parameters
    Array<SavedLightmapInfo> lightmaps

    The serialized lightmaps info.

    UnloadLightmaps()

    Unloads the lightmaps.

    Declaration
    public void UnloadLightmaps()

    UpdateLightmapsCollection(int32 count, int32 size)

    Updates the lightmaps collection (capacity and lightmap textures size).

    Declaration
    public void UpdateLightmapsCollection(int32 count, int32 size)
    Parameters
    int32 count

    The lightmaps count.

    int32 size

    The textures size.

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