Class TMaterialInfo

Unit

Declaration

type TMaterialInfo = class abstract(TObject)

Description

Abstract class for material information, that define material properties for various lighting equations. Particular public descendants define different lighting equations. Particular private descendants map X3D nodes' fields to these parameters.

Hierarchy

Overview

Fields

Public nested const DefaultTransparency = 0.0;

Methods

Public constructor Create(ANode: TX3DNode);
Public function EmissiveColor: TVector3; virtual; abstract;
Public function Transparency: Single; virtual; abstract;
Public function Opacity: Single;
Public function MainColor: TVector3; virtual; abstract;

Properties

Public property Node: TX3DNode read FNode;

Description

Fields

Public nested const DefaultTransparency = 0.0;
 

Methods

Public constructor Create(ANode: TX3DNode);
 
Public function EmissiveColor: TVector3; virtual; abstract;
 
Public function Transparency: Single; virtual; abstract;
 
Public function Opacity: Single;

Opacity is just 1 - Transparency.

Public function MainColor: TVector3; virtual; abstract;

If it is necessary to approximate the material by a single color, use this color. This is useful for debug purposes, for example when we force everything to be unlit by Attributes.Lighting=false. It doesn't follow any X3D official equations, it's only for debugging.

Properties

Public property Node: TX3DNode read FNode;

Associated material node.


Generated by PasDoc 0.16.0.