Table of Contents

Class WorldLightingInfo

Namespace
ValveResourceFormat.Renderer
Assembly
Renderer.dll

Scene lighting data including lightmaps, reflection probes, and shadow maps.

public class WorldLightingInfo

Inheritance

Inherited Members

Constructors

WorldLightingInfo(Scene)

Scene lighting data including lightmaps, reflection probes, and shadow maps.

public WorldLightingInfo(Scene scene)

Parameters

scene Scene

Properties

CubemapType

public CubemapType CubemapType { get; set; }

Property Value

CubemapType

EnableDynamicShadows

public bool EnableDynamicShadows { get; set; }

Property Value

bool

EnvMapHandshakes

public Dictionary<int, SceneEnvMap> EnvMapHandshakes { get; }

Property Value

Dictionary<int, SceneEnvMap>

EnvMaps

public List<SceneEnvMap> EnvMaps { get; }

Property Value

List<SceneEnvMap>

HasBakedShadowsFromLightmap

public bool HasBakedShadowsFromLightmap { get; }

Property Value

bool

HasValidLightProbes

public bool HasValidLightProbes { get; set; }

Property Value

bool

HasValidLightmaps

public bool HasValidLightmaps { get; set; }

Property Value

bool

LightProbeType

public LightProbeType LightProbeType { get; set; }

Property Value

LightProbeType

LightProbes

public List<SceneLightProbe> LightProbes { get; }

Property Value

List<SceneLightProbe>

LightingData

public LightingConstants LightingData { get; set; }

Property Value

LightingConstants

LightmapGameVersionNumber

public int LightmapGameVersionNumber { get; set; }

Property Value

int

LightmapVersionNumber

public int LightmapVersionNumber { get; set; }

Property Value

int

Lightmaps

public Dictionary<string, RenderTexture> Lightmaps { get; }

Property Value

Dictionary<string, RenderTexture>

ProbeHandshakes

public Dictionary<int, SceneLightProbe> ProbeHandshakes { get; }

Property Value

Dictionary<int, SceneLightProbe>

SunLightFrustum

public Frustum SunLightFrustum { get; }

Property Value

Frustum

SunLightShadowBias

public float SunLightShadowBias { get; set; }

Property Value

float

SunLightShadowCoverageScale

public float SunLightShadowCoverageScale { get; set; }

Property Value

float

SunViewProjection

public Matrix4x4 SunViewProjection { get; }

Property Value

Matrix4x4

UseSceneBoundsForSunLightFrustum

public bool UseSceneBoundsForSunLightFrustum { get; set; }

Property Value

bool

Methods

AddEnvironmentMap(SceneEnvMap)

public void AddEnvironmentMap(SceneEnvMap envmap)

Parameters

envmap SceneEnvMap

AddProbe(SceneLightProbe)

public void AddProbe(SceneLightProbe lightProbe)

Parameters

lightProbe SceneLightProbe

SetLightmapTextures(Shader)

public void SetLightmapTextures(Shader shader)

Parameters

shader Shader

StoreLightMappedLights_V1(List<SceneLight>)

public void StoreLightMappedLights_V1(List<SceneLight> lights)

Parameters

lights List<SceneLight>

StoreLightMappedLights_V2(List<SceneLight>)

public void StoreLightMappedLights_V2(List<SceneLight> lights)

Parameters

lights List<SceneLight>

UpdateSunLightFrustum(Camera, float)

public void UpdateSunLightFrustum(Camera camera, float shadowMapSize = 512)

Parameters

camera Camera
shadowMapSize float