Home Reference Source
public class | source

M_DirectionalLight

Extends:

GLBoostObjectL_ElementM_ElementM_AbstractLight → M_DirectionalLight

This is a Directional Light class.

Constructor Summary

Public Constructor
public

constructor(glBoostSystem: glBoostSystem, intensity: Vector4, rotate: Vector3, length: number)

The constructor of DirectionalLight class.

Member Summary

Public Members
public get
public set
public get
public set
public get
public get

matrix: *

public set

matrix: *

public get
public set
public set
public get
public set

rotate: *

public get

rotate: *

public get
public set
Private Members
private
private

_gizmo: *

private
private

Method Summary

Public Methods
public

Inherited Summary

From class GLBoostObject
public static
private static
private static
public get
public get
public get

Return the simple class-specific number.

public get
public get
public get
public get
public get
public get
public set
private
private
private
private
private
private
private
private
private
private
public
public
public
public

Return instance name.

public
private

_copy(instance: *)

private
From class L_Element
public get
public get

matrix: *

public set
public get
public get
public set
public get

rotate: *

public set
public get
public set
public get

scale: *

public set
public get
public get
public set
public get
public

[key]: *

public
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
public
public

getMatrixAt(lineName: string, inputValue: Vector3): *

public

getMatrixAtOrStatic(lineName: string, inputValue: number): *

public
public

getQuaternionAt(lineName: string, inputValue: number): *

public

getQuaternionAtOrStatic(lineName: string, inputValue: number | nullliteral): *

public
public

getRotateAt(lineName: string, inputValue: number): *

public

getRotateAtOrStatic(lineName: string, inputValue: number): *

public
public

getScaleAt(lineName: string, inputValue: number): *

public

getScaleAtOrStatic(lineName: string, inputValue: number): *

public
public
public

getTranslateAt(lineName: string, inputValue: number): Vector3

public

getTranslateAtOrStatic(lineName: string, inputValue: number): *

public
public
public

headToDirection(fromVec: Vector3, toVec: Vector3)

public

isTrsMatrixNeeded(lineName: string, inputValue: number): *

public
public
public

setAnimationAtLine(lineName: string, attributeName: string, inputArray: Array<any>, outputArray: Array<any>, interpolationMethod: string)

public

Set animation input value (for instance frame value), This value affect all child elements in this scene graph (recursively).

public
public
private
private
private
private
private
private

_copy(instance: L_Element)

private

_getAnimatedTransformValue(value: *, animation: *, type: *): *

private
private
From class M_Element
public set
public get
public get
public set
public get

gizmos: *

public get
public get
public get
public get
public get
public set
public get
public set
public get
public set
public get
public set
public get
public set
public get
public set
public get
public set
public get
public set
public get
public get

opacity: *

public set
public get
public get

parent: *

public get
public set
public get
public get
public get
public
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private

_masterElement: M_Element | nullliteral

private
private
private
private
private
private

_parent: M_Group | nullliteral

private
private
private
public

addGizmo(gizmo: M_Gizmo)

public
public
public
public
public
public
public
private
private
private

_copy(instance: M_Element)

private

_getCurrentAnimationInputValue(inputName: string): number | nullliteral

private

_multiplyMyAndParentRotateMatrices(currentElem: M_Element | nullliteral, withMySelf: boolean): *

private

_multiplyMyAndParentTransformMatrices(withMySelf: *, input: *): *

private
private
private
private
private
From class M_AbstractLight
public get

camera: *

public set

camera: *

public get
public set
public get
private

_camera: *

private

_gl: *

private
private
public
public
public
public

isTypeSpot(): *

public

Public Constructors

public constructor(glBoostSystem: glBoostSystem, intensity: Vector4, rotate: Vector3, length: number) source

The constructor of DirectionalLight class.

Override:

M_AbstractLight#constructor

Params:

NameTypeAttributeDescription
glBoostSystem glBoostSystem

glBoostSystem Instance

intensity Vector4

intensity as Vector4 Color

rotate Vector3
  • optional
  • default: undefined

initial rotation vector

length number
  • optional
  • default: 1

length for DirectionalLightGizmo

Public Members

public get direction: * source

public set direction: * source

public get directionInWorld: * source

public set intensity: * source

public get intensity: * source

public get matrix: * source

Override:

L_Element#matrix

public set matrix: * source

Override:

L_Element#matrix

public get multiplyMatrixGizmo: * source

public set multiplyMatrixGizmo: * source

public set quaternion: * source

Override:

L_Element#quaternion

public get quaternion: * source

Override:

L_Element#quaternion

public set rotate: * source

Override:

L_Element#rotate

public get rotate: * source

Override:

L_Element#rotate

public get translate: * source

Override:

L_Element#translate

public set translate: * source

Override:

L_Element#translate

Private Members

private _direction: * source

private _gizmo: * source

private _intensity: * source

private _isLightType: string source

Override:

M_AbstractLight#_isLightType

Public Methods

public callCameraCustomFunction() source