v13.visual.Visual.Material

Warning

This class is autogenerated. More detailed documentation can be found in the SDFormat spec.

class v13.visual.Visual.Material(script=None, shader=None, ambient='0 0 0 1', diffuse='0 0 0 1', specular='0 0 0 1', emissive='0 0 0 1')

The material of the visual element.

Parameters
script: Name of material from an installed script file. This

will override the color element if the script exists.

shader:
ambient: The ambient color of a material specified by set of

four numbers representing red/green/blue, each in the range of [0,1].

diffuse: The diffuse color of a material specified by set of

four numbers representing red/green/blue/alpha, each in the range of [0,1].

specular: The specular color of a material specified by set of

four numbers representing red/green/blue/alpha, each in the range of [0,1].

emissive: The emissive color of a material specified by set of

four numbers representing red/green/blue, each in the range of [0,1].

Nested Elements

Note that only complex elements are listed here. Elements that resolve to simple types (int, str, bool) are inlined.

v13.visual.Visual.Material.Script([uri, name])

Name of material from an installed script file.

v13.visual.Visual.Material.Shader([...])

Parameters