record TLight

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TLight = record

Description

Structure for holding data describing a dynamic point light.
Irrlicht supports point lights, spot lights, and directional lights.

Overview

Fields

AmbientColor: TFloatColor;
DiffuseColor: TFloatColor;
SpecularColor: TFloatColor;
Attenuation: TVector3D;
OuterCone: Single;
InnerCone: Single;
Falloff: Single;
Position: TVector3D;
Direction: TVector3D;
Radius: Single;
LightType: TLightType;
CastShadows: Boolean;

Description

Fields

AmbientColor: TFloatColor;

Ambient color emitted by the light.

DiffuseColor: TFloatColor;

Diffuse color emitted by the light.
This is the primary color you want to set.

SpecularColor: TFloatColor;

Specular color emitted by the light.
For details how to use specular highlights, see TMaterial.Shininess.

Attenuation: TVector3D;

Attenuation factors (constant, linear, quadratic).
Changes the light strength fading over distance. Can also be altered by setting the radius, Attenuation will change to (0,1.f/radius,0). Can be overridden after radius was set.

OuterCone: Single;

The angle of the spot's outer cone. Ignored for other lights.

InnerCone: Single;

The angle of the spot's inner cone. Ignored for other lights.

Falloff: Single;

The light strength's decrease between Outer and Inner cone.

Position: TVector3D;

Read-ONLY! Position of the light.
If Type is ltDirectional, it is ignored. Changed via light scene node's position.

Direction: TVector3D;

Read-ONLY! Direction of the light.
If Type is ltPoint, it is ignored. Changed via light scene node's rotation.

Radius: Single;

Read-ONLY! Radius of light. Everything within this radius be be lighted.

LightType: TLightType;

Read-ONLY! Type of the light. Default: ltPoint.

CastShadows: Boolean;

* Read-ONLY! Does the light cast shadows?


Generated by PasDoc 0.12.1 on 2012-09-14 17:32:22