Search Results for

    Show / Hide Table of Contents

    Class Lightmap

    Shadows Of Mordor static light map

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

    Constructors

    Lightmap(SceneLightmapsData* manager, int32 index, const SavedLightmapInfo& info)

    Initializes a new instance of the Lightmap class.

    Declaration
    public Lightmap(SceneLightmapsData* manager, int32 index, const SavedLightmapInfo& info)
    Parameters
    SceneLightmapsData manager

    The manager.

    int32 index

    The index.

    SavedLightmapInfo info

    The information.

    Methods

    EnsureSize(int32 size)

    Ensure that all textures have that size, if not resizing is performed

    Declaration
    public void EnsureSize(int32 size)
    Parameters
    int32 size

    Target size per texture

    GetInfo(SavedLightmapInfo& info)

    Gets lightmap info

    Declaration
    public void GetInfo(SavedLightmapInfo& info) const
    Parameters
    SavedLightmapInfo info

    Lightmap info

    GetTextures(GPUTexture* *lightmap0, GPUTexture* *lightmap1, GPUTexture* *lightmap2)

    Gets attached texture objects

    Declaration
    public void GetTextures(GPUTexture* *lightmap0, GPUTexture* *lightmap1, GPUTexture* *lightmap2) const
    Parameters
    GPUTexture lightmap0

    Lightmap 0 texture

    GPUTexture lightmap1

    Lightmap 1 texture

    GPUTexture lightmap2

    Lightmap 2 texture

    GetTextures(GPUTexture* lightmaps[3])

    Gets attached texture objects

    Declaration
    public void GetTextures(GPUTexture* lightmaps[3]) const
    Parameters
    GPUTexture lightmaps

    Lightmaps textures array

    GetTextures(Texture* lightmaps[3])

    Gets attached texture objects

    Declaration
    public void GetTextures(Texture* lightmaps[3]) const
    Parameters
    Texture lightmaps

    Lightmaps textures array

    IsReady()

    Determines whether this lightmap is ready (textures can be used by the renderer).

    Declaration
    public bool IsReady() const
    Returns
    bool

    UpdateTexture(Texture* texture, int32 index)

    Update texture (change it to another asset)

    Declaration
    public void UpdateTexture(Texture* texture, int32 index)
    Parameters
    Texture texture

    New lightmap texture asset

    int32 index

    Texture index

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