Class TCastlePunctualLight

Unit

Declaration

type TCastlePunctualLight = class(TCastleAbstractLight)

Description

Ancestor class for all punctual lights: point, spot, directional.

The name "punctual" follows the glTF terminology, https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_lights_punctual . Punctual lights are infinitely small points that emit light from simple position or direction. This makes them different e.g. from area lights, of environment lights.

Hierarchy

Overview

Fields

Protected FPunctualLight: TAbstractPunctualLightNode;

Methods

Public constructor Create(AOwner: TComponent); override;
Public function PropertySections(const PropertyName: String): TPropertySections; override;

Properties

Published property Shadows: Boolean read FShadows write SetShadows default false;

Description

Fields

Protected FPunctualLight: TAbstractPunctualLightNode;

Descendants should set it in constructor

Methods

Public constructor Create(AOwner: TComponent); override;

This item has no description.

Public function PropertySections(const PropertyName: String): TPropertySections; override;

This item has no description. Showing description inherited from TCastleComponent.PropertySections.

Section where to show property in the editor.

Properties

Published property Shadows: Boolean read FShadows write SetShadows default false;

Cast shadows from this light.

Right now this property activates shadow volumes. Please consult the shadow volumes documentation about important requirements of this technique, namely: models that cast shadows must be 2-manifold. Moreover, right now, only one light in the world can cast shadows using shadow volumes.

In the future we want to offer a choice between using shadow volumes and shadow maps.


Generated by PasDoc 0.16.0-snapshot.