docs.unity3d.com
    Show / Hide Table of Contents

    Struct LightMaps

    Represents a container for light maps.

    Namespace: Unity.Rendering
    Syntax
    public struct LightMaps : ISharedComponentData, IQueryTypeParameter, IEquatable<LightMaps>

    Fields

    colors

    An array of color maps.

    Declaration
    public Texture2DArray colors
    Field Value
    Type Description
    Texture2DArray

    directions

    An array of directional maps.

    Declaration
    public Texture2DArray directions
    Field Value
    Type Description
    Texture2DArray

    shadowMasks

    An array of Shadow masks.

    Declaration
    public Texture2DArray shadowMasks
    Field Value
    Type Description
    Texture2DArray

    Properties

    hasDirections

    Indicates whether the container stores any directional maps.

    Declaration
    public readonly bool hasDirections { get; }
    Property Value
    Type Description
    Boolean

    hasShadowMask

    Indicates whether the container stores any shadow masks.

    Declaration
    public readonly bool hasShadowMask { get; }
    Property Value
    Type Description
    Boolean

    isValid

    Indicates whether the container stores any color maps.

    Declaration
    public readonly bool isValid { get; }
    Property Value
    Type Description
    Boolean

    Methods

    ConstructLightMaps(List<Texture2D>, List<Texture2D>, List<Texture2D>)

    Constructs a LightMaps instance from a list of textures for colors, direction lights, and shadow masks.

    Declaration
    public static LightMaps ConstructLightMaps(List<Texture2D> inColors, List<Texture2D> inDirections, List<Texture2D> inShadowMasks)
    Parameters
    Type Name Description
    List<Texture2D> inColors

    The list of Texture2D for colors.

    List<Texture2D> inDirections

    The list of Texture2D for direction lights.

    List<Texture2D> inShadowMasks

    The list of Texture2D for shadow masks.

    Returns
    Type Description
    LightMaps

    Returns a new LightMaps object.

    Equals(LightMaps)

    Declaration
    public bool Equals(LightMaps other)
    Parameters
    Type Name Description
    LightMaps other
    Returns
    Type Description
    Boolean

    GetHashCode()

    Calculates the hash code for this object.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    The hash code.

    Overrides
    ValueType.GetHashCode()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023