Class TSpotLightNode
Unit
X3DNodes
Declaration
type TSpotLightNode = class(TAbstractPositionalLightNode)
Description
Light source that emits light from a specific point along a specific direction constrained within a cone.
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; |
|
|
class function ForVRMLVersion(const Version: TX3DVersion): boolean; 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 SpotCutoffDeg: Single; |
Spot cutoff angle (based on cutOffAngle).
Expressed in degrees, clamped to correct range (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; |
|
|
function SpotExponentApproximate: Single; |
Approximate spot exponent that could be used to render this spot light. Do not use this, unless you really have to. X3D spot light should have a linear fallback, from beamWidth to cutOffAngle, and there is no sensible way to approximate it by an exponent. Use this only if you have to render spot light with exponent, e.g. for OpenGL fixed-function pipeline.
|
|
procedure CreateNode; override; |
|
|
class function ClassX3DType: string; override; |
|
Properties
|
property FdBeamWidth: TSFFloat read FFdBeamWidth; |
Internal wrapper for property BeamWidth. This wrapper API may change, we advise to access simpler BeamWidth instead.
|
|
property BeamWidth: Single read GetBeamWidth write SetBeamWidth; |
|
|
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; |
|
|
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 FdProjectionAngle: TSFFloat read FFdProjectionAngle; |
Internal wrapper for property ProjectionAngle. This wrapper API may change, we advise to access simpler ProjectionAngle instead.
|
|
property ProjectionAngle: Single read GetProjectionAngle write SetProjectionAngle; |
|
Generated by PasDoc 0.16.0.