OneSidedMaterial (Standard name: Material)
This node defines material properties that defines one set of material properties for both sides
Inheritance
Code
XML encoding
<OneSidedMaterial logFeature='' transparency='0' specularColor='0 0 0' shininess='0.2' emissiveColor='0 0 0' diffuseColor='0.8 0.8 0.8' ambientIntensity='0.2' />
Classic encoding
OneSidedMaterial { logFeature [""] transparency 0 specularColor 0 0 0 shininess 0.2 emissiveColor 0 0 0 diffuseColor 0.8 0.8 0.8 ambientIntensity 0.2 }
Interface
Filter: X3D only | Avalon only | All
id | Name | DataType | PartType | Default | ValueType | Description |
---|---|---|---|---|---|---|
ambientIntensity | SFFloat | inputOutput | 0.2 | [0, 1] | [0..1] how much ambient omnidirectional light is reflected from all light sources. Interchange profile hint: this field may be ignored. | |
diffuseColor | SFColor | inputOutput | 0.8 0.8 0.8 | [RGB color] how much direct, angle-dependent light is reflected from all light sources. Hint: only emissiveColor affects IndexedLineSet, LineSet and PointSet. | ||
emissiveColor | SFColor | inputOutput | 0 0 0 | [RGB color] how much glowing light is emitted from this object. Hint: emissiveColors glow even when all lights are off. Hint: reset diffuseColor from default (.8 .8 .8) to (0 0 0) to avoid washout. Hint: only emissiveColor affects IndexedLineSet, LineSet and PointSet. Warning: bright emissiveColor values can wash out some textures. | ||
shininess | SFFloat | inputOutput | 0.2 | [0, 1] | [0..1] low values provide soft specular glows, high values provide sharper, smaller highlights. Interchange profile hint: this field may be ignored. | |
specularColor | SFColor | inputOutput | 0 0 0 | [RGB color] specular highlights are brightness reflections (example: shiny spots on an apple). Interchange profile hint: this field may be ignored. | ||
transparency | SFFloat | inputOutput | 0 | [0, 1] | [0..1] how 'clear' an object is: 1.0 is completely transparent, 0.0 is completely opaque. Interchange profile hint: transparency less then; .5 opaque, transparency greater then; .5 transparent. | |
logFeature | MFString | inputOutput | state, child, parent, route, eventIn, eventOut | controls the logging of changes, state: log state changes (e.g. live), child: log child add/remove, parent: log parent add/remove, route: log route add/remove; eventIn: log receiving of events, eventOut: log sending of events: guiView, runtime system should create node-view, guiEdit: runtime system should create node-editeverything: log everything | ||
metadata | SFNode | inputOutput | MetadataObject | container for payload metadata inside MetadataSet element |