LightClass

Classlabel: "pointlight" or "directionlight" or "spotlight"

Description:
Light Class is a special class that is isolated from the rest. It is closer to a RenderClass then an actual Object. These can only be used in [GameObjectClass]::lightName#.

ODF Properties:
  • [LightClass]

    lightColor.r = 1.0f
    Light Red Color.

    lightColor.g = 1.0f
    Light Green Color.

    lightColor.b = 1.0f
    Light Blue Color.

    lightColor.a = 1.0f
    Light Alpha Color.

    lightRange = 1e15
    Maximum range of the Light.

    Light Attenuation values. Use this graph to calculate the desired settings with BZCC's Shader:
    Battlezone Combat Commander Light Attenuation Graph [www.desmos.com]
    R = Radius, Kc = Constant, Kl = Linear, Kq = Quadratic. The Blue line represents BZCC's light falloff. BZCC's Shader forces the light to end at 0, which is why the dotted Red line isn't the actual light falloff curve.


    attenuateConstant = 1.0f
    Constant Attenuation, modified by Liniar/Quadratic.

    attenuateLinear = 0.0f
    Liniar Attenuation.

    attenuateQuadratic = 15.0f
    Quadratic Attenuation.

    coneAngInner = 1.570795
    Inner Cone Angle for Class: Spotlight.

    coneAngOuter = 1.570795
    Outer Cone Angle for Class: Spotlight.

    coneFalloff = 1.0f
    Cone Falloff ratio between origin and Radius. Used for Class: Spotlight.

    lensFlare = true
    If false, doesn't create a Sprite of "lightflare.tga" at it's origin.
On this page