Class TAbstractDirectionalLightNode
Unit
Declaration
type TAbstractDirectionalLightNode = class(TAbstractPunctualLightNode)
Description
Base class for all directional lights.
Hierarchy
- TObject
- TPersistent
- TX3DFileItem
- TX3DNode
- TAbstractNode
- TAbstractChildNode
- TAbstractLightNode
- TAbstractPunctualLightNode
- TAbstractDirectionalLightNode
Overview
Methods
function GetProjectionLocationLocal: TVector3; override; |
|
procedure SetProjectionLocationLocal(const Value: TVector3); override; |
|
function GetProjectionDirectionLocal: TVector3; override; |
|
procedure SetProjectionDirectionLocal(const Value: TVector3); override; |
|
constructor Create(const AX3DName: string = ''; const ABaseUrl: String = ''); override; |
|
procedure UpdateLightInstance(var LightInstance: TLightInstance); override; |
|
function ProjectionMatrix: TMatrix4; override; |
|
function ModelviewMatrix: TMatrix4; override; |
|
function ModelviewRotationMatrix: TMatrix4; override; |
|
procedure Box3DDistances(const Box: TBox3D; out MinDistance, MaxDistance: Single); override; |
|
function PositionAndDirection: TVector4; override; |
|
procedure CreateNode; override; |
|
class function ClassX3DType: String; override; |
Properties
property FdDirection: TSFVec3f read FFdDirection; |
|
property Direction: TVector3 read GetDirection write SetDirection; |
|
property FdProjectionRectangle: TSFVec4f read FFdProjectionRectangle; |
|
property ProjectionRectangle: TVector4 read GetProjectionRectangle write SetProjectionRectangle; |
|
property FdProjectionLocation: TSFVec3f read FFdProjectionLocation; |
|
property ProjectionLocation: TVector3 read GetProjectionLocation write SetProjectionLocation; |
Description
Methods
function GetProjectionLocationLocal: TVector3; override; |
|
This item has no description. |
procedure SetProjectionLocationLocal(const Value: TVector3); override; |
|
This item has no description. |
function GetProjectionDirectionLocal: TVector3; override; |
|
This item has no description. |
procedure SetProjectionDirectionLocal(const Value: TVector3); override; |
|
This item has no description. |
constructor Create(const AX3DName: string = ''; const ABaseUrl: String = ''); override; |
|
This item has no description. Showing description inherited from TX3DNode.Create. Constructor. Initializes various properties:
|
procedure UpdateLightInstance(var LightInstance: TLightInstance); override; |
|
This item has no description. Showing description inherited from TAbstractLightNode.UpdateLightInstance. Update TLightInstance record when lighting location/direction (and other properties precalculated on TLightInstance) change. Assumes that LightInstance.Node = Self. |
function ProjectionMatrix: TMatrix4; override; |
|
This item has no description. Showing description inherited from TAbstractPunctualLightNode.ProjectionMatrix. Matrices for rendering shadow map from this light. Identity in this class, override for subclasses able to do shadow mapping. |
function ModelviewMatrix: TMatrix4; override; |
|
This item has no description. |
function ModelviewRotationMatrix: TMatrix4; override; |
|
This item has no description. |
procedure Box3DDistances(const Box: TBox3D; out MinDistance, MaxDistance: Single); override; |
|
This item has no description. Showing description inherited from TAbstractPunctualLightNode.Box3DDistances. Calculate distances between the given Box and this light source. This is intended to capture the depth distances where the box resides, useful for calculating e.g. depth ranges to capture in the shadow maps. Depending on light source type, various distance measures may be used, appropriate to light sources projection. Always MinDistance <= MaxDistance. They may be negative when we measure along the light's direction. |
function PositionAndDirection: TVector4; override; |
|
This item has no description. Showing description inherited from TAbstractPunctualLightNode.PositionAndDirection. Position and direction expressed in homogeneous coordinates. For positional lights, the last component is always 1. For directional lights, the last component is always 0. Note that this is expressed in the local light node coordinate system. |
procedure CreateNode; override; |
|
Create node fields and events. |
class function ClassX3DType: String; override; |
|
This item has no description. Showing description inherited from TX3DNode.ClassX3DType. Node type name in VRML/X3D, for this class. Normal VRML/X3D node classes should override this to return something non-empty, and then X3DType automatically will return the same value. Empty for classes that don't have a hardcoded VRML/X3D node name, like a special TX3DUnknownNode. Such special classes should override then X3DType to return actual non-empty name there. You usually should call X3DType. The only use of this method is that it works on classes (it's "class function"), without needing at actual instance. |
Properties
property FdDirection: TSFVec3f read FFdDirection; |
|
Internal wrapper for property |
property Direction: TVector3 read GetDirection write SetDirection; |
|
This item has no description. |
property FdProjectionRectangle: TSFVec4f read FFdProjectionRectangle; |
|
Internal wrapper for property |
property ProjectionRectangle: TVector4 read GetProjectionRectangle write SetProjectionRectangle; |
|
This item has no description. |
property FdProjectionLocation: TSFVec3f read FFdProjectionLocation; |
|
Internal wrapper for property |
property ProjectionLocation: TVector3 read GetProjectionLocation write SetProjectionLocation; |
|
This item has no description. |
Generated by PasDoc 0.16.0-snapshot.