Struct LightMaps
Represents a container for light maps.
Implements
ISharedComponentData
IQueryTypeParameter
Namespace: Unity.Rendering
Assembly: Unity.Entities.Graphics.dll
Syntax
public struct LightMaps : ISharedComponentData, IQueryTypeParameter
Fields
colorsRef
An array of color maps.
Declaration
public UnityObjectRef<Texture2DArray> colorsRef
Field Value
Type | Description |
---|---|
UnityObjectRef<Texture2DArray> |
directionsRef
An array of directional maps.
Declaration
public UnityObjectRef<Texture2DArray> directionsRef
Field Value
Type | Description |
---|---|
UnityObjectRef<Texture2DArray> |
shadowMasksRef
An array of Shadow masks.
Declaration
public UnityObjectRef<Texture2DArray> shadowMasksRef
Field Value
Type | Description |
---|---|
UnityObjectRef<Texture2DArray> |
Properties
colors
An array of color maps.
Declaration
public Texture2DArray colors { get; set; }
Property Value
Type | Description |
---|---|
Texture2DArray |
directions
An array of directional maps.
Declaration
public Texture2DArray directions { get; set; }
Property Value
Type | Description |
---|---|
Texture2DArray |
hasDirections
Indicates whether the container stores any directional maps.
Declaration
public bool hasDirections { get; }
Property Value
Type | Description |
---|---|
bool |
hasShadowMask
Indicates whether the container stores any shadow masks.
Declaration
public bool hasShadowMask { get; }
Property Value
Type | Description |
---|---|
bool |
isValid
Indicates whether the container stores any color maps.
Declaration
public bool isValid { get; }
Property Value
Type | Description |
---|---|
bool |
shadowMasks
An array of Shadow masks.
Declaration
public Texture2DArray shadowMasks { get; set; }
Property Value
Type | Description |
---|---|
Texture2DArray |
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 |
---|---|
bool |
GetHashCode()
Calculates the hash code for this object.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | The hash code. |
Overrides
Implements
Unity.Entities.ISharedComponentData
Unity.Entities.IQueryTypeParameter