Class TClassicRayTracer

Unit

Declaration

type TClassicRayTracer = class(TRayTracer)

Description

Classic Whitted-style ray-tracer. See [https://castle-engine.io/vrml_engine_doc/output/xsl/html/section.classic_ray_tracer.html] for documentation.

Make sure that VRML2Lights in states are properly initialized if you plan to render VRML 2.0 nodes. TCastleSceneCore and descendants do this for you automatically.

Source: scene/castleraytracer.pas (line 138).

Hierarchy

Overview

Fields

Public InitialDepth: Cardinal;
Public FogNode: TFogNode;
Public GlobalLights: TLightInstancesList;
Public OwnsGlobalLights: boolean;

Methods

Protected procedure AppendStats(const Stats: TStrings; const RenderingTime: Single); override;
Public procedure Execute; override;
Public destructor Destroy; override;

Properties

Public property BaseLights: TLightInstancesList read GlobalLights write GlobalLights; deprecated 'use GlobalLights';
Public property OwnsBaseLights: Boolean read OwnsGlobalLights write OwnsGlobalLights; deprecated 'use OwnsGlobalLights';

Description

Fields

Public InitialDepth: Cardinal;

Limit for recursion depth. 0 means that only primary rays will be cast, 1 means that primary rays and 1 ray into mirror / transmitted / shadow, and so on.

Source: scene/castleraytracer.pas (line 145).

Public FogNode: TFogNode;

Fog to render. Set FogNode <> Nil to render a fog, following VRML 2.0/X3D lighting equations. FogNode.TransformScale is used.

Source: scene/castleraytracer.pas (line 150).

Public GlobalLights: TLightInstancesList;

Lights shining on everything, like a headlight.

Source: scene/castleraytracer.pas (line 153).

Public OwnsGlobalLights: boolean;

This item has no description.

Source: scene/castleraytracer.pas (line 154).

Methods

Protected procedure AppendStats(const Stats: TStrings; const RenderingTime: Single); override;

This item has no description.

Source: scene/castleraytracer.pas (line 140).

Public procedure Execute; override;

This item has no description. Showing description inherited from TRayTracer.Execute.

Do ray-tracing, writing a ray-traced image into the Image.

Source: scene/castleraytracer.pas (line 161).

Public destructor Destroy; override;

This item has no description.

Source: scene/castleraytracer.pas (line 162).

Properties

Public property BaseLights: TLightInstancesList read GlobalLights write GlobalLights; deprecated 'use GlobalLights';

Warning: this symbol is deprecated: use GlobalLights

This item has no description.

Source: scene/castleraytracer.pas (line 156).

Public property OwnsBaseLights: Boolean read OwnsGlobalLights write OwnsGlobalLights; deprecated 'use OwnsGlobalLights';

Warning: this symbol is deprecated: use OwnsGlobalLights

This item has no description.

Source: scene/castleraytracer.pas (line 158).


Generated by PasDoc 0.17.0.snapshot.