| Description | Hierarchy | Fields | Methods | Properties |
type TVRMLGLHeadLight = class(TObject)
This is a class that helps you render a headlight.
The most common use is to render a headlight conforming to VRML specification, and configurable by KambiHeadLight VRML node (see [http://vrmlengine.sourceforge.net/kambi_vrml_extensions.php#ext_headlight]).
If you create this passing HeadLightNode = Nil to constructor then the default VRML headlight (as required by NavigationInfo.headlight specification in VRML 2.0) properties will be set up.
Equivalently, you can say that the default KambiHeadLight node properties will be assumed — because default KambiHeadLight node are intentionally set such that they are identical with default headlight required by VRML 2.0 spec.
Pass HeadLightNode <> Nil to constructor to use appropriate KambiHeadLight node properties.
![]() |
constructor Create(HeadLightNode: TNodeKambiHeadLight); |
![]() |
destructor Destroy; override; |
![]() |
procedure Render(GLLightNumber: Cardinal; CallEnabled: boolean); |
![]() |
class procedure RenderOrDisable(Light: TVRMLGLHeadlight; GLLightNumber: Cardinal); |
![]() |
property AmbientIntensity: Single read FAmbientIntensity write FAmbientIntensity; |
![]() |
property Attenuation: TVector3Single read FAttenuation write FAttenuation; |
![]() |
property Color: TVector3Single read FColor write FColor; |
![]() |
property Intensity: Single read FIntensity write FIntensity; |
![]() |
property Spot: boolean read FSpot write FSpot; |
![]() |
property SpotCutOffAngle: Single read FSpotCutOffAngle write FSpotCutOffAngle; |
![]() |
property SpotDropOffRate: Single read FSpotDropOffRate write FSpotDropOffRate; |
![]() |
constructor Create(HeadLightNode: TNodeKambiHeadLight); |
![]() |
destructor Destroy; override; |
![]() |
class procedure RenderOrDisable(Light: TVRMLGLHeadlight; GLLightNumber: Cardinal); |
|
This is like Light.Render(GLLightNumber, true), but will call glDisable(GL_LIGHT_GLLightNumber) if Light is nil. In effect, you can call this procedure with nil or non-nil parameter, and you can be sure that enabled/disabled state of light GL_LIGHT_GLLightNumber will be set. | |
![]() |
property AmbientIntensity: Single read FAmbientIntensity write FAmbientIntensity; |
![]() |
property Attenuation: TVector3Single read FAttenuation write FAttenuation; |
![]() |
property Color: TVector3Single read FColor write FColor; |
![]() |
property Intensity: Single read FIntensity write FIntensity; |
![]() |
property Spot: boolean read FSpot write FSpot; |
![]() |
property SpotCutOffAngle: Single read FSpotCutOffAngle write FSpotCutOffAngle; |
![]() |
property SpotDropOffRate: Single read FSpotDropOffRate write FSpotDropOffRate; |