Class TSpotLightNode_1
Unit
X3DNodes
Declaration
type TSpotLightNode_1 = class(TAbstractPositionalLightNode)
Description
No description available, ancestor TAbstractPositionalLightNode description follows
Base class for all positional lights.
Hierarchy
Overview
Methods
Properties
Description
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; |
|
 |
function SpotExponent: Single; |
Spot exponent (based on dropOffRate). Not normalized (i.e. is a real exponent, in VRML 1.0 expresses in [0..1] range to mean exponents [0..128]). Clamp to correct range.
|
 |
function SpotCutoffDeg: Single; |
Spot cutoff angle (based on cutOffAngle).
Expressed in degrees, clamped to correct range (see TSpotLightNode.SpotCutoffDeg for reasons). (since user can input any value in VRML, and also conversion radians -> degrees could accidentally raise value slightly > 90, so cutOffAngle = 1.5708 is in degrees 90.0002104591, which would cause OpenGL fixed-function error).
|
 |
function SpotCosCutoff: Single; |
|
 |
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 HasRadius: boolean; override; |
|
 |
procedure CreateNode; override; |
|
 |
class function ClassX3DType: string; override; |
|
 |
class function ForVRMLVersion(const Version: TX3DVersion): Boolean; override; |
|
Properties
 |
property FdDirection: TSFVec3f read FFdDirection; |
Internal wrapper for property Direction. This wrapper API may change, we advise to access simpler Direction instead.
|
 |
property Direction: TVector3 read GetDirection write SetDirection; |
|
 |
property FdDropOffRate: TSFFloat read FFdDropOffRate; |
Internal wrapper for property DropOffRate. This wrapper API may change, we advise to access simpler DropOffRate instead.
|
 |
property DropOffRate: Single read GetDropOffRate write SetDropOffRate; |
|
 |
property FdCutOffAngle: TSFFloat read FFdCutOffAngle; |
Internal wrapper for property CutOffAngle. This wrapper API may change, we advise to access simpler CutOffAngle instead.
|
 |
property CutOffAngle: Single read GetCutOffAngle write SetCutOffAngle; |
|
Generated by PasDoc 0.16.0.