Class TAppearanceNode

Unit

Declaration

type TAppearanceNode = class(TAbstractAppearanceNode)

Description

Visual properties of geometry.

Note that the geometry is unlit (pure white, regardless of lighting) if no Material is assigned. To make the geometry lit, you can just assign there a material like

MyAppearanceNode.Material := TPhysicalMaterialNode.Create;

Alternative material types are also possible: TMaterialNode (simpler Phong lighting model) and TUnlitMaterialNode (unlit, pure emissive rendering, but with configurable emissive color and texture).

Source: scene/x3d/x3dnodes_standard_shape.inc (line 149).

Hierarchy

Overview

Methods

Protected function DirectEnumerateActive(Func: TEnumerateChildrenFunction): Pointer; override;
Public destructor Destroy; override;
Public procedure CreateNode; override;
Public class function ClassX3DType: String; override;
Public procedure SetShaders(const Value: array of TAbstractShaderNode);
Public procedure SetReceiveShadows(const Value: array of TAbstractPunctualLightNode);
Public procedure SetEffects(const Value: array of TEffectNode);

Properties

Public property FdFillProperties: TSFNode read FFdFillProperties;
Public property FillProperties: TFillPropertiesNode read GetFillProperties write SetFillProperties;
Public property FdLineProperties: TSFNode read FFdLineProperties;
Public property LineProperties: TLinePropertiesNode read GetLineProperties write SetLineProperties;
Public property FdMaterial: TSFNode read FFdMaterial;
Public property Material: TAbstractMaterialNode read GetMaterial write SetMaterial;
Public property FdPointProperties: TSFNode read FFdPointProperties;
Public property PointProperties: TPointPropertiesNode read GetPointProperties write SetPointProperties;
Public property FdShaders: TMFNode read FFdShaders;
Public property FdTexture: TSFNode read FFdTexture;
Public property Texture: TAbstractTextureNode read GetTexture write SetTexture;
Public property FdTextureTransform: TSFNode read FFdTextureTransform;
Public property TextureTransform: TAbstractTextureTransformNode read GetTextureTransform write SetTextureTransform;
Public property FdAcousticProperties: TSFNode read FFdAcousticProperties;
Public property AcousticProperties: TAcousticPropertiesNode read GetAcousticProperties write SetAcousticProperties;
Public property FdBackMaterial: TSFNode read FFdBackMaterial;
Public property BackMaterial: TAbstractOneSidedMaterialNode read GetBackMaterial write SetBackMaterial;
Public property FdAlphaMode: TSFStringEnum read FFdAlphaMode;
Public property AlphaMode: TAlphaMode read GetAlphaMode write SetAlphaMode;
Public property FdAlphaCutoff: TSFFloat read FFdAlphaCutoff;
Public property AlphaCutoff: Single read GetAlphaCutoff write SetAlphaCutoff;
Public property FdReceiveShadows: TMFNode read FFdReceiveShadows;
Public property FdShadowCaster: TSFBool read FFdShadowCaster;
Public property ShadowCaster: Boolean read GetShadowCaster write SetShadowCaster;
Public property FdNormalMap: TSFNode read FFdNormalMap;
Public property NormalMap: TAbstractTexture2DNode read GetNormalMap write SetNormalMap;
Public property FdHeightMap: TSFNode read FFdHeightMap;
Public property HeightMap: TAbstractTexture2DNode read GetHeightMap write SetHeightMap;
Public property FdHeightMapScale: TSFFloat read FFdHeightMapScale;
Public property HeightMapScale: Single read GetHeightMapScale write SetHeightMapScale;
Public property FdBlendMode: TSFNode read FFdBlendMode;
Public property BlendMode: TBlendModeNode read GetBlendMode write SetBlendMode;
Public property FdEffects: TMFNode read FFdEffects;
Public property FdAlphaChannel: TSFStringEnum read FFdAlphaChannel;
Public property AlphaChannel: TAutoAlphaChannel read GetAlphaChannel write SetAlphaChannel;

Description

Methods

Protected function DirectEnumerateActive(Func: TEnumerateChildrenFunction): Pointer; override;

This item has no description. Showing description inherited from TX3DNode.DirectEnumerateActive.

Enumerate all active child nodes of given node.

"Active nodes" are the ones affecting current look or collisions, e.g. from Switch node only one child will be enumerated. See Traverse for more precise definition.

"Direct" means that this enumerates only direct descendants, i.e. this is not recursive. See methods like Traverse or EnumerateNodes if you want recursive behavior.

This can enumerate both VRML1Children nodes and nodes within TSFNode and TMFNode fields.

Default implementation in this class enumerates all Children nodes of VRML 1.0. If you need to remove some children for VRML 1.0 (e.g. for Switch or LOD nodes) or add some children for VRML 2.0 you have to override this. You do not need to call inherited when overriding this — in fact, you should not, if you want to omit some nodes.

Stops and returns immediately if Func returns non-nil for some child.

Source: scene/x3d/x3dnodes_standard_shape.inc (line 174).

Public destructor Destroy; override;

This item has no description.

Source: scene/x3d/x3dnodes_standard_shape.inc (line 176).

Public procedure CreateNode; override;

Create node fields and events.

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 65).

Public class function ClassX3DType: String; override;

This item has no description. Showing description inherited from TX3DNode.ClassX3DType.

Node type name in VRML/X3D, for this class. Normal VRML/X3D node classes should override this to return something non-empty, and then X3DType automatically will return the same value.

Empty for classes that don't have a hardcoded VRML/X3D node name, like a special TX3DUnknownNode. Such special classes should override then X3DType to return actual non-empty name there.

You usually should call X3DType. The only use of this method is that it works on classes (it's "class function"), without needing at actual instance.

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 66).

Public procedure SetShaders(const Value: array of TAbstractShaderNode);

Override shaders used for rendering this shape. Instead of this, it is usually better to use SetEffects – the effects set that way are easier, cooperate with CGE built-in rendering features, and one code is more portable to both mobile and desktop.

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 100).

Public procedure SetReceiveShadows(const Value: array of TAbstractPunctualLightNode);

This item has no description.

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 142).

Public procedure SetEffects(const Value: array of TEffectNode);

Additional shader code for rendering this shape. See https://castle-engine.io/shaders . The shader effects they are easy to use, cooperate with CGE built-in rendering features, and one code is more portable to both mobile and desktop.

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 182).

Properties

Public property FdFillProperties: TSFNode read FFdFillProperties;

Internal wrapper for property FillProperties. This wrapper API may change, we advise to access simpler FillProperties instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 71).

Public property FillProperties: TFillPropertiesNode read GetFillProperties write SetFillProperties;

This item has no description.

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 75).

Public property FdLineProperties: TSFNode read FFdLineProperties;

Internal wrapper for property LineProperties. This wrapper API may change, we advise to access simpler LineProperties instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 80).

Public property LineProperties: TLinePropertiesNode read GetLineProperties write SetLineProperties;

Properties how to display line geometry (line width and such).

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 82).

Public property FdMaterial: TSFNode read FFdMaterial;

Internal wrapper for property Material. This wrapper API may change, we advise to access simpler Material instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 86).

Public property Material: TAbstractMaterialNode read GetMaterial write SetMaterial;

Material determines how the shape looks, and how it interacts with lighting.

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 88).

Public property FdPointProperties: TSFNode read FFdPointProperties;

Internal wrapper for property PointProperties. This wrapper API may change, we advise to access simpler PointProperties instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 92).

Public property PointProperties: TPointPropertiesNode read GetPointProperties write SetPointProperties;

Properties how to display point geometry (point size and such).

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 94).

Public property FdShaders: TMFNode read FFdShaders;

Internal wrapper for property Shaders. This wrapper API may change, we advise to access simpler Shaders instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 98).

Public property FdTexture: TSFNode read FFdTexture;

Internal wrapper for property Texture. This wrapper API may change, we advise to access simpler Texture instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 104).

Public property Texture: TAbstractTextureNode read GetTexture write SetTexture;

Warning: this symbol is deprecated.

Main texture used by this appearance (diffuse texture for Phong lighting model, base texture for physical lighting model, emissive texture for the unlit lighting model). It is more flexible to set the relevant texture inside material node, like TMaterialNode.DiffuseTexture, TPhysicalMaterialNode.BaseTexture, TUnlitMaterialNode.EmissiveTexture.

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 106).

Public property FdTextureTransform: TSFNode read FFdTextureTransform;

Internal wrapper for property TextureTransform. This wrapper API may change, we advise to access simpler TextureTransform instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 110).

Public property TextureTransform: TAbstractTextureTransformNode read GetTextureTransform write SetTextureTransform;

Texture transformation.

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 112).

Public property FdAcousticProperties: TSFNode read FFdAcousticProperties;

Internal wrapper for property AcousticProperties. This wrapper API may change, we advise to access simpler AcousticProperties instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 116).

Public property AcousticProperties: TAcousticPropertiesNode read GetAcousticProperties write SetAcousticProperties;

This item has no description.

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 118).

Public property FdBackMaterial: TSFNode read FFdBackMaterial;

Internal wrapper for property BackMaterial. This wrapper API may change, we advise to access simpler BackMaterial instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 122).

Public property BackMaterial: TAbstractOneSidedMaterialNode read GetBackMaterial write SetBackMaterial;

Alternative material to use for back faces (not implemented).

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 124).

Public property FdAlphaMode: TSFStringEnum read FFdAlphaMode;

Internal wrapper for property AlphaMode. This wrapper API may change, we advise to access simpler AlphaMode instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 128).

Public property AlphaMode: TAlphaMode read GetAlphaMode write SetAlphaMode;

This item has no description.

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 130).

Public property FdAlphaCutoff: TSFFloat read FFdAlphaCutoff;

Internal wrapper for property AlphaCutoff. This wrapper API may change, we advise to access simpler AlphaCutoff instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 134).

Public property AlphaCutoff: Single read GetAlphaCutoff write SetAlphaCutoff;

This item has no description.

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 136).

Public property FdReceiveShadows: TMFNode read FFdReceiveShadows;

Internal wrapper for property ReceiveShadows. This wrapper API may change, we advise to access simpler ReceiveShadows instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 140).

Public property FdShadowCaster: TSFBool read FFdShadowCaster;

Internal wrapper for property ShadowCaster. This wrapper API may change, we advise to access simpler ShadowCaster instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 146).

Public property ShadowCaster: Boolean read GetShadowCaster write SetShadowCaster;

This item has no description.

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 148).

Public property FdNormalMap: TSFNode read FFdNormalMap;

Internal wrapper for property NormalMap. This wrapper API may change, we advise to access simpler NormalMap instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 152).

Public property NormalMap: TAbstractTexture2DNode read GetNormalMap write SetNormalMap;

Normal map of this appearance. See https://castle-engine.io/x3d_implementation_texturing_extensions.php

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 154).

Public property FdHeightMap: TSFNode read FFdHeightMap;

Internal wrapper for property HeightMap. This wrapper API may change, we advise to access simpler HeightMap instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 159).

Public property HeightMap: TAbstractTexture2DNode read GetHeightMap write SetHeightMap;

Height map of this appearance. See https://castle-engine.io/x3d_implementation_texturing_extensions.php

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 163).

Public property FdHeightMapScale: TSFFloat read FFdHeightMapScale;

Internal wrapper for property HeightMapScale. This wrapper API may change, we advise to access simpler HeightMapScale instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 168).

Public property HeightMapScale: Single read GetHeightMapScale write SetHeightMapScale;

This item has no description.

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 170).

Public property FdBlendMode: TSFNode read FFdBlendMode;

Internal wrapper for property BlendMode. This wrapper API may change, we advise to access simpler BlendMode instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 174).

Public property BlendMode: TBlendModeNode read GetBlendMode write SetBlendMode;

Determines the exact blending equation used, in case AlphaMode indicates blending. See https://castle-engine.io/x3d_extensions.php

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 176).

Public property FdEffects: TMFNode read FFdEffects;

Internal wrapper for property Effects. This wrapper API may change, we advise to access simpler Effects instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 180).

Public property FdAlphaChannel: TSFStringEnum read FFdAlphaChannel;

Internal wrapper for property AlphaChannel. This wrapper API may change, we advise to access simpler AlphaChannel instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 186).

Public property AlphaChannel: TAutoAlphaChannel read GetAlphaChannel write SetAlphaChannel;

This item has no description.

Source: scene/x3d/auto_generated_node_helpers/x3dnodes_appearance.inc (line 188).


Generated by PasDoc 0.17.0.snapshot.