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
- TObject
- TMaterialInfo
Overview
Fields
nested const DefaultTransparency = 0.0; |
Methods
function GetMainColor: TVector3; virtual; abstract; |
|
procedure SetMainColor(const Value: TVector3); virtual; abstract; |
|
function GetEmissiveColor: TVector3; virtual; abstract; |
|
procedure SetEmissiveColor(const Value: TVector3); virtual; abstract; |
|
function GetTransparency: Single; virtual; abstract; |
|
procedure SetTransparency(const Value: Single); virtual; abstract; |
|
constructor Create(ANode: TX3DNode); |
Properties
property Node: TX3DNode read FNode; |
|
property Transparency: Single read GetTransparency write SetTransparency; |
|
property Opacity: Single read GetOpacity write SetOpacity; |
|
property MainColor: TVector3 read GetMainColor write SetMainColor; |
|
property EmissiveColor: TVector3 read GetEmissiveColor write SetEmissiveColor; |
Description
Fields
nested const DefaultTransparency = 0.0; |
|
This item has no description. |
Methods
function GetMainColor: TVector3; virtual; abstract; |
|
This item has no description. |
procedure SetMainColor(const Value: TVector3); virtual; abstract; |
|
This item has no description. |
function GetEmissiveColor: TVector3; virtual; abstract; |
|
This item has no description. |
procedure SetEmissiveColor(const Value: TVector3); virtual; abstract; |
|
This item has no description. |
function GetTransparency: Single; virtual; abstract; |
|
This item has no description. |
procedure SetTransparency(const Value: Single); virtual; abstract; |
|
This item has no description. |
constructor Create(ANode: TX3DNode); |
|
This item has no description. |
Properties
property Node: TX3DNode read FNode; |
|
Associated material node. |
property Transparency: Single read GetTransparency write SetTransparency; |
|
Transparency of the material determines how much is it "see-through". Value 0 (DefaultTransparency) means fully opaque, 1 means fully transparent. |
property Opacity: Single read GetOpacity write SetOpacity; |
|
Opacity of the material, just |
property MainColor: TVector3 read GetMainColor write SetMainColor; |
|
Single color that is the best approximation of this material look. For Phong material, it's DiffuseColor. For unlit material, it's EmissiveColor. For physical material, it's BaseColor. 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. |
property EmissiveColor: TVector3 read GetEmissiveColor write SetEmissiveColor; |
|
Emissive color represents the color of the material that is not affected by any light sources. All material types (unlit, Phong, physical) have this color. |
Generated by PasDoc 0.16.0-snapshot.