Class TFogNode
Unit
X3DNodes
Declaration
type TFogNode = class(TAbstractBindableNode)
Description
Simulate atmospheric fog effects (for the whole scene) by blending with the fog colour, based on the distance from the viewer.
Hierarchy
Overview
Methods
Properties
Description
Methods
 |
constructor Create(const AX3DName: String = ''; const ABaseUrl: String = ''); override; |
|
 |
procedure ApplyFog(var Color: TVector3; const Position, VertexPos: TVector3; const AFogType: TFogTypeOrNone); |
Apply fog to the color of the vertex.
This can be used by software renderers (ray-tracers etc.) to calculate pixel color following VRML/X3D specifications. After all the lighting is summed up (see TX3DGraphTraverseState.Emission and TLightInstance.Contribution), process color by this method to apply fog.
Does nothing if AFogType = ftNone. In this special case, it's also allowed to call this on Nil instance.
|
 |
procedure CreateNode; override; |
Create node fields and events.
|
 |
class function ClassX3DType: String; override; |
|
Properties
 |
property FdColor: TSFColor read FFdColor; |
Internal wrapper for property Color . This wrapper API may change, we advise to access simpler Color instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).
|
 |
property FdFogType: TSFStringEnum read FFdFogType; |
Internal wrapper for property FogType . This wrapper API may change, we advise to access simpler FogType instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).
|
 |
property FogType: TFogType read GetFogType write SetFogType; |
|
 |
property FdVisibilityRange: TSFFloat read FFdVisibilityRange; |
Internal wrapper for property VisibilityRange . This wrapper API may change, we advise to access simpler VisibilityRange instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).
|
 |
property VisibilityRange: Single read GetVisibilityRange write SetVisibilityRange; |
|
 |
property FdVolumetric: TSFBool read FFdVolumetric; |
Internal wrapper for property Volumetric . This wrapper API may change, we advise to access simpler Volumetric instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).
|
 |
property FdVolumetricDirection: TSFVec3f read FFdVolumetricDirection; |
Internal wrapper for property VolumetricDirection . This wrapper API may change, we advise to access simpler VolumetricDirection instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).
|
 |
property VolumetricDirection: TVector3 read GetVolumetricDirection write SetVolumetricDirection; |
|
 |
property FdVolumetricVisibilityStart: TSFFloat read FFdVolumetricVisibilityStart; |
Internal wrapper for property VolumetricVisibilityStart . This wrapper API may change, we advise to access simpler VolumetricVisibilityStart instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).
|
 |
property VolumetricVisibilityStart: Single read GetVolumetricVisibilityStart write SetVolumetricVisibilityStart; |
|
Generated by PasDoc 0.16.0.