Class TMaterialInfo
Unit
X3DNodes
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
Methods
Properties
Description
Fields
|
nested const DefaultTransparency = 0.0; |
|
Methods
|
function EmissiveColor: TVector3; virtual; abstract; |
|
|
function Transparency: Single; virtual; abstract; |
|
|
function Opacity: Single; |
Opacity is just 1 - Transparency .
|
|
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
|
property Node: TX3DNode read FNode; |
Associated material node.
|
Generated by PasDoc 0.16.0.