Class SceneLight
- Namespace
- ValveResourceFormat.Renderer
- Assembly
- Renderer.dll
Scene node representing a light source with type, color, and attenuation.
public class SceneLight : SceneNodeInheritance
Inherited Members
Constructors
SceneLight(Scene)
Scene node representing a light source with type, color, and attenuation.
public SceneLight(Scene scene)Parameters
sceneScene
Properties
AttenuationLinear
public float AttenuationLinear { get; set; }Property Value
AttenuationQuadratic
public float AttenuationQuadratic { get; set; }Property Value
Brightness
public float Brightness { get; set; }Property Value
Color
public Vector3 Color { get; set; }Property Value
Direction
public Vector3 Direction { get; set; }Property Value
Entity
public SceneLight.EntityType Entity { get; set; }Property Value
FallOff
public float FallOff { get; set; }Property Value
Position
public Vector3 Position { get; set; }Property Value
Range
public float Range { get; set; }Property Value
SpotInnerAngle
public float SpotInnerAngle { get; set; }Property Value
SpotOuterAngle
public float SpotOuterAngle { get; set; }Property Value
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
Type
public SceneLight.LightType Type { get; set; }Property Value
Methods
AnglesToDirection(Vector3)
public static Vector3 AnglesToDirection(Vector3 angles)Parameters
anglesVector3
Returns
FromEntityProperties(Scene, EntityType, Entity)
public static SceneLight FromEntityProperties(Scene scene, SceneLight.EntityType type, EntityLump.Entity entity)Parameters
sceneScenetypeSceneLight.EntityTypeentityEntityLump.Entity
Returns
IsAccepted(string)
public static (bool Accepted, SceneLight.EntityType Type) IsAccepted(string classname)Parameters
classnamestring