Table of Contents

Class SceneLight

Namespace
ValveResourceFormat.Renderer
Assembly
Renderer.dll

Scene node representing a light source with type, color, and attenuation.

public class SceneLight : SceneNode

Inheritance

Inherited Members

Constructors

SceneLight(Scene)

Scene node representing a light source with type, color, and attenuation.

public SceneLight(Scene scene)

Parameters

scene Scene

Properties

AttenuationLinear

public float AttenuationLinear { get; set; }

Property Value

float

AttenuationQuadratic

public float AttenuationQuadratic { get; set; }

Property Value

float

Brightness

public float Brightness { get; set; }

Property Value

float

Color

public Vector3 Color { get; set; }

Property Value

Vector3

Direction

public Vector3 Direction { get; set; }

Property Value

Vector3

Entity

public SceneLight.EntityType Entity { get; set; }

Property Value

SceneLight.EntityType

FallOff

public float FallOff { get; set; }

Property Value

float

Position

public Vector3 Position { get; set; }

Property Value

Vector3

Range

public float Range { get; set; }

Property Value

float

SpotInnerAngle

public float SpotInnerAngle { get; set; }

Property Value

float

SpotOuterAngle

public float SpotOuterAngle { get; set; }

Property Value

float

StationaryLightIndex

Light index to a baked lightmap. Range: 0..255 for GameLightmapVersion 1 and 0..3 for GameLightmapVersion 2.

public int StationaryLightIndex { get; set; }

Property Value

int

Type

public SceneLight.LightType Type { get; set; }

Property Value

SceneLight.LightType

Methods

AnglesToDirection(Vector3)

public static Vector3 AnglesToDirection(Vector3 angles)

Parameters

angles Vector3

Returns

Vector3

FromEntityProperties(Scene, EntityType, Entity)

public static SceneLight FromEntityProperties(Scene scene, SceneLight.EntityType type, EntityLump.Entity entity)

Parameters

scene Scene
type SceneLight.EntityType
entity EntityLump.Entity

Returns

SceneLight

IsAccepted(string)

public static (bool Accepted, SceneLight.EntityType Type) IsAccepted(string classname)

Parameters

classname string

Returns

(bool Accepted, SceneLight.EntityType Type)