Class TMaterialNode
Unit
Declaration
type TMaterialNode = class(TAbstractOneSidedMaterialNode)
Description
Material determines how the geometry looks on the screen, by providing parameters to the lighting equations. This is the material responsible for the Phong lighting model.
It specifies how light affects one side of the surface.
Note: Whether the shape is visible from both sides depends on the geometry TAbstractGeometryNode.Solid field, and is independent of whether you use this node or TTwoSidedMaterialNode.
Source: scene/x3d/x3dnodes_standard_shape.inc (line 226).
Hierarchy
- TObject
- TPersistent
- TX3DFileItem
- TX3DNode
- TAbstractNode
- TAbstractAppearanceChildNode
- TAbstractMaterialNode
- TAbstractOneSidedMaterialNode
- TMaterialNode
Overview
Methods
| Public | destructor Destroy; override; |
| Public | class function ForVRMLVersion(const Version: TX3DVersion): boolean; override; |
| Public | function Opacity: Single; deprecated 'use MaterialInfo.Opacity'; |
| Public | function ShininessExp: Single; |
| Public | function MaterialInfo: TMaterialInfo; override; |
| Public | function PureEmissive: boolean; deprecated 'use TUnlitMaterialNode for unlit materials'; |
| Public | procedure ForcePureEmissive; deprecated 'use TUnlitMaterialNode for unlit materials'; |
| Public | procedure CreateNode; override; |
| Public | class function ClassX3DType: String; override; |
| Public | procedure SetReflSpecular(const Value: array of TCastleColorRGB); overload; |
| Public | procedure SetReflSpecular(const Value: TVector3List); overload; |
| Public | procedure SetReflDiffuse(const Value: array of TCastleColorRGB); overload; |
| Public | procedure SetReflDiffuse(const Value: TVector3List); overload; |
| Public | procedure SetTransSpecular(const Value: array of TCastleColorRGB); overload; |
| Public | procedure SetTransSpecular(const Value: TVector3List); overload; |
| Public | procedure SetTransDiffuse(const Value: array of TCastleColorRGB); overload; |
| Public | procedure SetTransDiffuse(const Value: TVector3List); overload; |
Properties
| Public | property FdAmbientIntensity: TSFFloat read FFdAmbientIntensity; |
| Public | property AmbientIntensity: Single read GetAmbientIntensity write SetAmbientIntensity; |
| Public | property FdAmbientTexture: TSFNode read FFdAmbientTexture; |
| Public | property AmbientTexture: TAbstractSingleTextureNode read GetAmbientTexture write SetAmbientTexture; |
| Public | property FdAmbientTextureMapping: TSFString read FFdAmbientTextureMapping; |
| Public | property AmbientTextureMapping: String read GetAmbientTextureMapping write SetAmbientTextureMapping; |
| Public | property FdDiffuseColor: TSFColor read FFdDiffuseColor; |
| Public | property DiffuseColor: TCastleColorRGB read GetDiffuseColor write SetDiffuseColor; |
| Public | property FdDiffuseTexture: TSFNode read FFdDiffuseTexture; |
| Public | property DiffuseTexture: TAbstractSingleTextureNode read GetDiffuseTexture write SetDiffuseTexture; |
| Public | property FdDiffuseTextureMapping: TSFString read FFdDiffuseTextureMapping; |
| Public | property DiffuseTextureMapping: String read GetDiffuseTextureMapping write SetDiffuseTextureMapping; |
| 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 FdShininess: TSFFloat read FFdShininess; |
| Public | property Shininess: Single read GetShininess write SetShininess; |
| Public | property FdShininessTexture: TSFNode read FFdShininessTexture; |
| Public | property ShininessTexture: TAbstractSingleTextureNode read GetShininessTexture write SetShininessTexture; |
| Public | property FdShininessTextureMapping: TSFString read FFdShininessTextureMapping; |
| Public | property ShininessTextureMapping: String read GetShininessTextureMapping write SetShininessTextureMapping; |
| Public | property FdSpecularColor: TSFColor read FFdSpecularColor; |
| Public | property SpecularColor: TCastleColorRGB read GetSpecularColor write SetSpecularColor; |
| Public | property FdSpecularTexture: TSFNode read FFdSpecularTexture; |
| Public | property SpecularTexture: TAbstractSingleTextureNode read GetSpecularTexture write SetSpecularTexture; |
| Public | property FdSpecularTextureMapping: TSFString read FFdSpecularTextureMapping; |
| Public | property SpecularTextureMapping: String read GetSpecularTextureMapping write SetSpecularTextureMapping; |
| Public | property FdTransparency: TSFFloat read FFdTransparency; |
| Public | property Transparency: Single read GetTransparency write SetTransparency; |
| Public | property FdFogImmune: TSFBool read FFdFogImmune; |
| Public | property FogImmune: Boolean read GetFogImmune write SetFogImmune; |
| Public | property FdMirror: TSFFloat read FFdMirror; |
| Public | property Mirror: Single read GetMirror write SetMirror; |
| Public | property FdReflSpecular: TMFColor read FFdReflSpecular; |
| Public | property FdReflDiffuse: TMFColor read FFdReflDiffuse; |
| Public | property FdTransSpecular: TMFColor read FFdTransSpecular; |
| Public | property FdTransDiffuse: TMFColor read FFdTransDiffuse; |
| Public | property FdReflSpecularExp: TSFFloat read FFdReflSpecularExp; |
| Public | property ReflSpecularExp: Single read GetReflSpecularExp write SetReflSpecularExp; |
| Public | property FdTransSpecularExp: TSFFloat read FFdTransSpecularExp; |
| Public | property TransSpecularExp: Single read GetTransSpecularExp write SetTransSpecularExp; |
Description
Methods
| Public | destructor Destroy; override; |
|
This item has no description. | |
| Public | class function ForVRMLVersion(const Version: TX3DVersion): boolean; override; |
|
This item has no description. Showing description inherited from TX3DNode.ForVRMLVersion. Some nodes are present only in specific VRML/X3D version. This functions decides it. For example some nodes can only work in VRML < 2.0, some others only in VRML >= 2.0. There are even some pairs of nodes: for example TConeNode_1 works with VRML < 2.0, TConeNode works with VRML >= 2.0. NodesManager will use this. Default implementation of this function returns always In practice I only use this function when various VRML/X3D versions specify the same node name but
| |
| Public | function Opacity: Single; deprecated 'use MaterialInfo.Opacity'; |
|
Warning: this symbol is deprecated: use MaterialInfo.Opacity
Opacity of the material, just | |
| Public | function ShininessExp: Single; |
|
| |
| 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 | function PureEmissive: boolean; deprecated 'use TUnlitMaterialNode for unlit materials'; |
|
Warning: this symbol is deprecated: use TUnlitMaterialNode for unlit materials Only the emissiveColor is not black (zero), which means that the material behaves like unlit. This checks that ambient and diffuse and specular colors are all zero. It's an important information about the material sometimes. It is similar to the NULL material situation (when "Appearance.material=NULL" case), but the color and transparency are still configurable (using FdEmissiveColor and FdTransparency fields). This way of achieving "something like unlit material" has issues, see https://github.com/michaliskambi/x3d-tests/wiki/Why-is-UnlitMaterial-useful . For this reason, we recommend to use (and detect, for optimization) the TUnlitMaterialNode instead of this "special case of Phong material". | |
| Public | procedure ForcePureEmissive; deprecated 'use TUnlitMaterialNode for unlit materials'; |
|
Warning: this symbol is deprecated: use TUnlitMaterialNode for unlit materials Force the material pure emissive (see PureEmissive) by setting other colors to black. | |
| Public | procedure CreateNode; override; |
|
Create node fields and events. Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 75). | |
| 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. Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 76). | |
| Public | procedure SetReflSpecular(const Value: array of TCastleColorRGB); overload; |
|
This item has no description. Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 197). | |
| Public | procedure SetReflSpecular(const Value: TVector3List); overload; |
|
This item has no description. Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 201). | |
| Public | procedure SetReflDiffuse(const Value: array of TCastleColorRGB); overload; |
|
This item has no description. Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 211). | |
| Public | procedure SetReflDiffuse(const Value: TVector3List); overload; |
|
This item has no description. Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 215). | |
| Public | procedure SetTransSpecular(const Value: array of TCastleColorRGB); overload; |
|
This item has no description. Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 225). | |
| Public | procedure SetTransSpecular(const Value: TVector3List); overload; |
|
This item has no description. Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 229). | |
| Public | procedure SetTransDiffuse(const Value: array of TCastleColorRGB); overload; |
|
This item has no description. Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 239). | |
| Public | procedure SetTransDiffuse(const Value: TVector3List); overload; |
|
This item has no description. Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 243). | |
Properties
| Public | property FdAmbientIntensity: TSFFloat read FFdAmbientIntensity; |
|
Internal wrapper for property Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 80). | |
| Public | property AmbientIntensity: Single read GetAmbientIntensity write SetAmbientIntensity; |
|
This item has no description. Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 82). | |
| Public | property FdAmbientTexture: TSFNode read FFdAmbientTexture; |
|
Internal wrapper for property Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 86). | |
| Public | property AmbientTexture: TAbstractSingleTextureNode read GetAmbientTexture write SetAmbientTexture; |
|
This item has no description. Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 88). | |
| Public | property FdAmbientTextureMapping: TSFString read FFdAmbientTextureMapping; |
|
Internal wrapper for property Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 92). | |
| Public | property AmbientTextureMapping: String read GetAmbientTextureMapping write SetAmbientTextureMapping; |
|
This item has no description. Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 94). | |
| Public | property FdDiffuseColor: TSFColor read FFdDiffuseColor; |
|
Internal wrapper for property Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 98). | |
| Public | property DiffuseColor: TCastleColorRGB read GetDiffuseColor write SetDiffuseColor; |
|
The primary way to control the color of object with Phong material. The object reflects light sources depending on the angle of the surface with respect to the light source. The more directly the surface faces the light, the more diffuse light reflects. Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 100). | |
| Public | property FdDiffuseTexture: TSFNode read FFdDiffuseTexture; |
|
Internal wrapper for property Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 104). | |
| Public | property DiffuseTexture: TAbstractSingleTextureNode read GetDiffuseTexture write SetDiffuseTexture; |
|
The primary texture to control the color of object with Phong material. The RGB channel of this texture is multiplied with DiffuseColor, and alpha channel is multiplied with the opacity (1-Transparency). Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 106). | |
| Public | property FdDiffuseTextureMapping: TSFString read FFdDiffuseTextureMapping; |
|
Internal wrapper for property Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 110). | |
| Public | property DiffuseTextureMapping: String read GetDiffuseTextureMapping write SetDiffuseTextureMapping; |
|
This item has no description. Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 112). | |
| Public | property FdOcclusionStrength: TSFFloat read FFdOcclusionStrength; |
|
Internal wrapper for property Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 116). | |
| Public | property OcclusionStrength: Single read GetOcclusionStrength write SetOcclusionStrength; |
|
This item has no description. Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 118). | |
| Public | property FdOcclusionTexture: TSFNode read FFdOcclusionTexture; |
|
Internal wrapper for property Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 122). | |
| Public | property OcclusionTexture: TAbstractSingleTextureNode read GetOcclusionTexture write SetOcclusionTexture; |
|
This item has no description. Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 124). | |
| Public | property FdOcclusionTextureMapping: TSFString read FFdOcclusionTextureMapping; |
|
Internal wrapper for property Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 128). | |
| Public | property OcclusionTextureMapping: String read GetOcclusionTextureMapping write SetOcclusionTextureMapping; |
|
This item has no description. Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 130). | |
| Public | property FdShininess: TSFFloat read FFdShininess; |
|
Internal wrapper for property Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 134). | |
| Public | property Shininess: Single read GetShininess write SetShininess; |
|
This item has no description. Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 136). | |
| Public | property FdShininessTexture: TSFNode read FFdShininessTexture; |
|
Internal wrapper for property Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 140). | |
| Public | property ShininessTexture: TAbstractSingleTextureNode read GetShininessTexture write SetShininessTexture; |
|
This item has no description. Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 142). | |
| Public | property FdShininessTextureMapping: TSFString read FFdShininessTextureMapping; |
|
Internal wrapper for property Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 146). | |
| Public | property ShininessTextureMapping: String read GetShininessTextureMapping write SetShininessTextureMapping; |
|
This item has no description. Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 148). | |
| Public | property FdSpecularColor: TSFColor read FFdSpecularColor; |
|
Internal wrapper for property Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 152). | |
| Public | property SpecularColor: TCastleColorRGB read GetSpecularColor write SetSpecularColor; |
|
Color of specular highlight, on shiny objects. Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 154). | |
| Public | property FdSpecularTexture: TSFNode read FFdSpecularTexture; |
|
Internal wrapper for property Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 158). | |
| Public | property SpecularTexture: TAbstractSingleTextureNode read GetSpecularTexture write SetSpecularTexture; |
|
This item has no description. Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 160). | |
| Public | property FdSpecularTextureMapping: TSFString read FFdSpecularTextureMapping; |
|
Internal wrapper for property Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 164). | |
| Public | property SpecularTextureMapping: String read GetSpecularTextureMapping write SetSpecularTextureMapping; |
|
This item has no description. Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 166). | |
| Public | property FdTransparency: TSFFloat read FFdTransparency; |
|
Internal wrapper for property Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 170). | |
| Public | property Transparency: Single read GetTransparency write SetTransparency; |
|
Setting Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 172). | |
| Public | property FdFogImmune: TSFBool read FFdFogImmune; |
|
Internal wrapper for property Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 177). | |
| Public | property FogImmune: Boolean read GetFogImmune write SetFogImmune; |
|
This item has no description. Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 181). | |
| Public | property FdMirror: TSFFloat read FFdMirror; |
|
Internal wrapper for property Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 186). | |
| Public | property Mirror: Single read GetMirror write SetMirror; |
|
This item has no description. Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 188). | |
| Public | property FdReflSpecular: TMFColor read FFdReflSpecular; |
|
Internal wrapper for property Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 193). | |
| Public | property FdReflDiffuse: TMFColor read FFdReflDiffuse; |
|
Internal wrapper for property Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 207). | |
| Public | property FdTransSpecular: TMFColor read FFdTransSpecular; |
|
Internal wrapper for property Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 221). | |
| Public | property FdTransDiffuse: TMFColor read FFdTransDiffuse; |
|
Internal wrapper for property Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 235). | |
| Public | property FdReflSpecularExp: TSFFloat read FFdReflSpecularExp; |
|
Internal wrapper for property Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 249). | |
| Public | property ReflSpecularExp: Single read GetReflSpecularExp write SetReflSpecularExp; |
|
This item has no description. Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 253). | |
| Public | property FdTransSpecularExp: TSFFloat read FFdTransSpecularExp; |
|
Internal wrapper for property Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 259). | |
| Public | property TransSpecularExp: Single read GetTransSpecularExp write SetTransSpecularExp; |
|
This item has no description. Source: scene/x3d/auto_generated_node_helpers/x3dnodes_material.inc (line 263). | |
Generated by PasDoc 0.17.0.snapshot.