Class TLightSceneNode

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TLightSceneNode = class(TSceneNode)

Description

Scene node which is a dynamic light.
You can switch the light on and off by making it visible or not. It can be animated by ordinary scene node animators. If the light type is directional or spot, the direction of the light source is defined by the rotation of the scene node (assuming (0,0,1) as the local direction of the light).

Hierarchy

Overview

Properties

Public property CastShadow: Boolean read GetCastShadow write EnableCastShadow;
Public property LightData: TLight read GetLightData write SetLightData;
Public property LightType: TLightType read GetLightType write SetLightType;
Public property Radius: Single read GetRadius write SetRadius;

Description

Properties

Public property CastShadow: Boolean read GetCastShadow write EnableCastShadow;

Sets whether this light casts shadows.
Enabling this flag won't automatically cast shadows, the meshes will still need shadow scene nodes attached. But one can enable or disable distinct lights for shadow casting for performance reasons.

Public property LightData: TLight read GetLightData write SetLightData;

The light data associated with this node.

Public property LightType: TLightType read GetLightType write SetLightType;

The light type.

Public property Radius: Single read GetRadius write SetRadius;

Gets the light's radius of influence or modifies it.
Outside this radius the light won't lighten geometry and cast no shadows. Setting the radius will also influence the attenuation, setting it to (0,1/radius,0). If you want to override this behavior, set the attenuation after the radius.


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