Class TPhysicalMaterialNode

Unit

Declaration

type TPhysicalMaterialNode = class(TAbstractOneSidedMaterialNode)

Description

This item has no description. Showing description inherited from TAbstractMaterialNode.

Base node type for all Material nodes.

Hierarchy

Overview

Methods

Public destructor Destroy; override;
Public function MaterialInfo: TMaterialInfo; override;
Public procedure CreateNode; override;
Public class function ClassX3DType: String; override;

Properties

Public property FdBaseColor: TSFColor read FFdBaseColor;
Public property BaseColor: TCastleColorRGB read GetBaseColor write SetBaseColor;
Public property FdBaseTexture: TSFNode read FFdBaseTexture;
Public property BaseTexture: TAbstractSingleTextureNode read GetBaseTexture write SetBaseTexture;
Public property FdBaseTextureMapping: TSFString read FFdBaseTextureMapping;
Public property BaseTextureMapping: String read GetBaseTextureMapping write SetBaseTextureMapping;
Public property FdMetallic: TSFFloat read FFdMetallic;
Public property Metallic: Single read GetMetallic write SetMetallic;
Public property FdMetallicRoughnessTexture: TSFNode read FFdMetallicRoughnessTexture;
Public property MetallicRoughnessTexture: TAbstractSingleTextureNode read GetMetallicRoughnessTexture write SetMetallicRoughnessTexture;
Public property FdMetallicRoughnessTextureMapping: TSFString read FFdMetallicRoughnessTextureMapping;
Public property MetallicRoughnessTextureMapping: String read GetMetallicRoughnessTextureMapping write SetMetallicRoughnessTextureMapping;
Public property FdOcclusionStrength: TSFFloat read FFdOcclusionStrength;
Public property OcclusionStrength: Single read GetOcclusionStrength write SetOcclusionStrength;
Public property FdOcclusionTexture: TSFNode read FFdOcclusionTexture;
Public property OcclusionTexture: TAbstractSingleTextureNode read GetOcclusionTexture write SetOcclusionTexture;
Public property FdOcclusionTextureMapping: TSFString read FFdOcclusionTextureMapping;
Public property OcclusionTextureMapping: String read GetOcclusionTextureMapping write SetOcclusionTextureMapping;
Public property FdRoughness: TSFFloat read FFdRoughness;
Public property Roughness: Single read GetRoughness write SetRoughness;
Public property FdTransparency: TSFFloat read FFdTransparency;
Public property Transparency: Single read GetTransparency write SetTransparency;

Description

Methods

Public destructor Destroy; override;

This item has no description.

Public function MaterialInfo: TMaterialInfo; override;

This item has no description. Showing description inherited from TAbstractMaterialNode.MaterialInfo.

Material information based on this node. It is automatically updated when properties of this material change. Do not free it yourself, it will be automatically freed when this node is freed.

Public procedure CreateNode; override;

Create node fields and events.

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.

Properties

Public property FdBaseColor: TSFColor read FFdBaseColor;

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

Public property BaseColor: TCastleColorRGB read GetBaseColor write SetBaseColor;

The primary way to control the color of object with physical (PBR) material.

Public property FdBaseTexture: TSFNode read FFdBaseTexture;

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

Public property BaseTexture: TAbstractSingleTextureNode read GetBaseTexture write SetBaseTexture;

The primary texture to control the color of object with physical (PBR) material. The RGB channel of this texture is multiplied with BaseColor, and alpha channel is multiplied with the opacity (1-Transparency).

Public property FdBaseTextureMapping: TSFString read FFdBaseTextureMapping;

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

Public property BaseTextureMapping: String read GetBaseTextureMapping write SetBaseTextureMapping;

Determines texture coordinates used by BaseTexture.

Public property FdMetallic: TSFFloat read FFdMetallic;

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

Public property Metallic: Single read GetMetallic write SetMetallic;

The metalness of the material; values range from 0.0 (non-metal) to 1.0 (metal).

Public property FdMetallicRoughnessTexture: TSFNode read FFdMetallicRoughnessTexture;

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

Public property MetallicRoughnessTexture: TAbstractSingleTextureNode read GetMetallicRoughnessTexture write SetMetallicRoughnessTexture;

Control the Metallic and Roughness using a texture. The Blue channel of this texture is multiplied with Metallic. The Green channel is multiplied with Roughness. The other channels are ignored.

Public property FdMetallicRoughnessTextureMapping: TSFString read FFdMetallicRoughnessTextureMapping;

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

Public property MetallicRoughnessTextureMapping: String read GetMetallicRoughnessTextureMapping write SetMetallicRoughnessTextureMapping;

Determines texture coordinates used by MetallicRoughnessTexture.

Public property FdOcclusionStrength: TSFFloat read FFdOcclusionStrength;

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

Public property OcclusionStrength: Single read GetOcclusionStrength write SetOcclusionStrength;

This item has no description.

Public property FdOcclusionTexture: TSFNode read FFdOcclusionTexture;

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

Public property OcclusionTexture: TAbstractSingleTextureNode read GetOcclusionTexture write SetOcclusionTexture;

This item has no description.

Public property FdOcclusionTextureMapping: TSFString read FFdOcclusionTextureMapping;

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

Public property OcclusionTextureMapping: String read GetOcclusionTextureMapping write SetOcclusionTextureMapping;

This item has no description.

Public property FdRoughness: TSFFloat read FFdRoughness;

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

Public property Roughness: Single read GetRoughness write SetRoughness;

The roughness of the material; values range from 0.0 (smooth) to 1.0 (rough).

Public property FdTransparency: TSFFloat read FFdTransparency;

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

Public property Transparency: Single read GetTransparency write SetTransparency;

Setting Transparency to value > 0 makes the object partially-transparent. Setting it to 1.0 makes it even invisible (but still collidable). If you want to render the object using blending (which is usually the case for partially-transparent) it is recommended to specify it explicitly using TAppearanceNode.AlphaMode.


Generated by PasDoc 0.16.0-snapshot.