Struct LightingBGFX
Syntax
public struct LightingBGFX : IComponentData
Fields
ambient
Declaration
Field Value
csmLight
Declaration
public MappedLightBGFX csmLight
Field Value
csmLightsis
Declaration
public float4 csmLightsis
Field Value
csmOffsetScale
Declaration
public float *csmOffsetScale
Field Value
fogColor
Declaration
Field Value
fogParams
Declaration
Field Value
mappedLight0
Declaration
public MappedLightBGFX mappedLight0
Field Value
mappedLight01sis
Declaration
public float4 mappedLight01sis
Field Value
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 |
|
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
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 |
|
Declaration
public void TransformToViewSpace(ref float4x4 viewTx, ref LightingViewSpaceBGFX dest, ushort viewId)
Parameters