Struct LightingBGFX | Project Tiny Rendering | 0.24.0-preview.1
docs.unity3d.com
    Show / Hide Table of Contents

    Struct LightingBGFX

    Namespace: Unity.Tiny.Rendering
    Syntax
    public struct LightingBGFX : IComponentData

    Fields

    ambient

    Declaration
    public float4 ambient
    Field Value
    Type Description
    float4

    csmLight

    Declaration
    public MappedLightBGFX csmLight
    Field Value
    Type Description
    MappedLightBGFX

    csmLightsis

    Declaration
    public float4 csmLightsis
    Field Value
    Type Description
    float4

    csmOffsetScale

    Declaration
    public float *csmOffsetScale
    Field Value
    Type Description
    Single*

    fogColor

    Declaration
    public float4 fogColor
    Field Value
    Type Description
    float4

    fogParams

    Declaration
    public float4 fogParams
    Field Value
    Type Description
    float4

    mappedLight0

    Declaration
    public MappedLightBGFX mappedLight0
    Field Value
    Type Description
    MappedLightBGFX

    mappedLight01sis

    Declaration
    public float4 mappedLight01sis
    Field Value
    Type Description
    float4

    mappedLight1

    Declaration
    public MappedLightBGFX mappedLight1
    Field Value
    Type Description
    MappedLightBGFX

    maxCsmLights

    Declaration
    public const int maxCsmLights = 1
    Field Value
    Type Description
    Int32

    maxMappedLights

    Declaration
    public const int maxMappedLights = 2
    Field Value
    Type Description
    Int32

    maxPointOrDirLights

    Declaration
    public const int maxPointOrDirLights = 8
    Field Value
    Type Description
    Int32

    numCsmLights

    Declaration
    public int numCsmLights
    Field Value
    Type Description
    Int32

    numMappedLights

    Declaration
    public int numMappedLights
    Field Value
    Type Description
    Int32

    numPointOrDirLights

    Declaration
    public int numPointOrDirLights
    Field Value
    Type Description
    Int32

    podl_colorIVR

    Declaration
    public float *podl_colorIVR
    Field Value
    Type Description
    Single*

    podl_positionOrDir

    Declaration
    public float *podl_positionOrDir
    Field Value
    Type Description
    Single*

    Methods

    InverseSquare(Single)

    Declaration
    public static float InverseSquare(float x)
    Parameters
    Type Name Description
    Single x
    Returns
    Type Description
    Single

    SetDirLight(Int32, float3, float3)

    Declaration
    public void SetDirLight(int idx, float3 dirWorldSpace, float3 color)
    Parameters
    Type Name Description
    Int32 idx
    float3 dirWorldSpace
    float3 color

    SetMappedLight(Int32, float4x4, float3, float4, Single, float4, bgfx.TextureHandle, Int32)

    Declaration
    public void SetMappedLight(int idx, float4x4 m, float3 color, float4 worldPosOrDir, float range, float4 mask, bgfx.TextureHandle shadowMap, int shadowMapSize)
    Parameters
    Type Name Description
    Int32 idx
    float4x4 m
    float3 color
    float4 worldPosOrDir
    Single range
    float4 mask
    bgfx.TextureHandle shadowMap
    Int32 shadowMapSize

    SetPointLight(Int32, float3, Single, float3)

    Declaration
    public void SetPointLight(int idx, float3 pos, float range, float3 color)
    Parameters
    Type Name Description
    Int32 idx
    float3 pos
    Single range
    float3 color

    TransformToViewSpace(ref float4x4, ref LightingViewSpaceBGFX, UInt16)

    Declaration
    public void TransformToViewSpace(ref float4x4 viewTx, ref LightingViewSpaceBGFX dest, ushort viewId)
    Parameters
    Type Name Description
    float4x4 viewTx
    LightingViewSpaceBGFX dest
    UInt16 viewId
    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