LightComponent

Component representing an instance of a point light.

Summary
LightComponentComponent representing an instance of a point light.
Functions
NKSetRadiusSet the illumination radius of this instance.
NKSetFlickerEnable or disable flickering.
NKSetColorSet the color of this instance.
NKSetOffsetSet the offset of this point light from its owner GameObject.
NKEnableEnables this light component.
NKDisableDisables this light component.

Functions

NKSetRadius

Set the illumination radius of this instance.

Parameters

floatThe radius to assign.

NKSetFlicker

Enable or disable flickering.

Parameters

boolIf true, enables flickering.

NKSetColor

Set the color of this instance.

Parameters

vec3The RGB intensity values, 1.0 represents maximum intensity on that channel.

NKSetOffset

Set the offset of this point light from its owner GameObject.

Parameters

vec3The offset from the owner GameObjects origin.

NKEnable

Enables this light component.

NKDisable

Disables this light component.

Close