Table of Contents

Class Light

Namespace
BasilEngine.Components
Assembly
BasilEngine.dll
[NativeHeader("Bindings/ManagedLight.hpp")]
public class Light : Component
Inheritance
Light
Inherited Members

Properties

color

Light color as a vector.

public Vector3 color { get; set; }

Property Value

Vector3

colorB

Blue component of the light color.

public float colorB { get; set; }

Property Value

float

colorG

Green component of the light color.

public float colorG { get; set; }

Property Value

float

colorR

Red component of the light color.

public float colorR { get; set; }

Property Value

float

dirX

X component of the light direction.

public float dirX { get; }

Property Value

float

dirY

Y component of the light direction.

public float dirY { get; }

Property Value

float

dirZ

Z component of the light direction.

public float dirZ { get; }

Property Value

float

direction

Direction of the light (used for directional and spot lights).

public Vector3 direction { get; set; }

Property Value

Vector3

enabled

Enables or disables light contribution.

public bool enabled { get; set; }

Property Value

bool

innerConeDeg

Inner cone angle in degrees for spot lights.

public float innerConeDeg { get; set; }

Property Value

float

intensity

Brightness multiplier of the light.

public float intensity { get; set; }

Property Value

float

outerConeDeg

Outer cone angle in degrees for spot lights.

public float outerConeDeg { get; set; }

Property Value

float

range

Effective range of the light.

public float range { get; set; }

Property Value

float

type

Gets or sets the light type.

public Light.LightType type { get; set; }

Property Value

Light.LightType

Methods

SetCones(float, float)

Sets both inner and outer cone angles at once.

public void SetCones(float innerDeg, float outerDeg)

Parameters

innerDeg float
outerDeg float