Struct LightingBGFX
Syntax
public struct LightingBGFX : ISystemStateComponentData
Fields
ambient
Declaration
Field Value
Type |
Description |
Unity.Mathematics.float4 |
|
csmLight
Declaration
public MappedLightBGFX csmLight
Field Value
csmLightsis
Declaration
public float4 csmLightsis
Field Value
Type |
Description |
Unity.Mathematics.float4 |
|
csmOffsetScale
Declaration
public float *csmOffsetScale
Field Value
fogColor
Declaration
Field Value
Type |
Description |
Unity.Mathematics.float4 |
|
fogParams
Declaration
Field Value
Type |
Description |
Unity.Mathematics.float4 |
|
mappedLight0
Declaration
public MappedLightBGFX mappedLight0
Field Value
mappedLight01sis
Declaration
public float4 mappedLight01sis
Field Value
Type |
Description |
Unity.Mathematics.float4 |
|
mappedLight1
Declaration
public MappedLightBGFX mappedLight1
Field Value
maxCsmLights
Declaration
public const int maxCsmLights = 1
Field Value
maxMappedLights
Declaration
public const int maxMappedLights = 2
Field Value
maxPointOrDirLights
Declaration
public const int maxPointOrDirLights = 8
Field Value
numCsmLights
Declaration
Field Value
numMappedLights
Declaration
public int numMappedLights
Field Value
numPointOrDirLights
Declaration
public int numPointOrDirLights
Field Value
podl_colorIVR
Declaration
public float *podl_colorIVR
Field Value
podl_positionOrDir
Declaration
public float *podl_positionOrDir
Field Value
Methods
InverseSquare(Single)
Declaration
public static float InverseSquare(float x)
Parameters
Type |
Name |
Description |
Single |
x |
|
Returns
SetDirLight(Int32, float3, float3)
Declaration
public void SetDirLight(int idx, float3 dirWorldSpace, float3 color)
Parameters
Type |
Name |
Description |
Int32 |
idx |
|
Unity.Mathematics.float3 |
dirWorldSpace |
|
Unity.Mathematics.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 |
|
Unity.Mathematics.float4x4 |
m |
|
Unity.Mathematics.float3 |
color |
|
Unity.Mathematics.float4 |
worldPosOrDir |
|
Single |
range |
|
Unity.Mathematics.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 |
|
Unity.Mathematics.float3 |
pos |
|
Single |
range |
|
Unity.Mathematics.float3 |
color |
|
Declaration
public void TransformToViewSpace(ref float4x4 viewTx, ref LightingViewSpaceBGFX dest, ushort viewId)
Parameters