Castle Game EngineIntroduction Units Class Hierarchy Classes, Interfaces, Objects and Records Types Variables Constants Functions and Procedures Identifiers
|
Class TMaterialInfo
Unit
X3DNodes
Declaration
type TMaterialInfo = class(TObject)
Description
Material information, that abstracts various ways to define material properties. This hides differences between VRML 1.0 Material, X3D and VRML 2.0 Material and CommonSurfaceShader.
Hierarchy
Overview
Fields
 |
internal const DefaultAmbientColor: TVector3Single = (0.2, 0.2, 0.2); |
 |
internal const DefaultAmbientIntensity = 0.2; |
 |
internal const DefaultDiffuseColor: TVector3Single = (0.8, 0.8, 0.8); |
 |
internal const DefaultSpecularColor: TVector3Single = (0, 0, 0); |
 |
internal const DefaultEmissiveColor: TVector3Single = (0, 0, 0); |
 |
internal const DefaultShininess = 0.2; |
 |
internal const DefaultShininessExp = DefaultShininess * 128; |
 |
internal const DefaultTransparency = 0.0; |
 |
internal const DefaultReflectionColor: TVector3Single = (0, 0, 0); |
 |
internal const DefaultTransmissionColor: TVector3Single = (0, 0, 0); |
 |
internal const DefaultReflSpecularExp = 1000000; |
 |
internal const DefaultTransSpecularExp = 1000000; |
Methods
Description
Fields
 |
internal const DefaultAmbientColor: TVector3Single = (0.2, 0.2, 0.2); |
|
Default material parameters.
They luckily match between all the material-like nodes:
The AmbientColor is an exception, the effective ambientColor for X3D is ambientIntensity * diffuseColor = (0.2 * 0.8, 0.2 * 0.8, 0.2 * 0.8).
|
 |
internal const DefaultAmbientIntensity = 0.2; |
|
|
 |
internal const DefaultShininess = 0.2; |
|
|
 |
internal const DefaultTransparency = 0.0; |
|
|
 |
internal const DefaultReflSpecularExp = 1000000; |
|
|
 |
internal const DefaultTransSpecularExp = 1000000; |
|
|
Methods
 |
function Shininess: Single; virtual; abstract; |
|
|
 |
function ShininessExp: Single; |
|
|
 |
function Transparency: Single; virtual; abstract; |
|
|
 |
function ReflSpecularExp: Single; virtual; abstract; |
|
|
 |
function TransSpecularExp: Single; virtual; abstract; |
|
|
Generated by PasDoc 0.14.0.
|