Contains property types of Standard material. More...
#include <kanzi/core.ui/graphics3d/standard_material.hpp>
Static Public Member Functions | |
static ColorRGBA | getAmbientColor (const Object &object) |
Gets the value of the AmbientProperty of an object. More... | |
static ColorRGBA | getDiffuseColor (const Object &object) |
Gets the value of the DiffuseProperty of an object. More... | |
static ColorRGBA | getEmissiveColor (const Object &object) |
Gets the value of the EmissiveProperty of an object. More... | |
static ColorRGBA | getGlobalAmbientColor (const Object &object) |
Gets the value of the GlobalAmbientProperty of an object. More... | |
static ColorRGBA | getSpecularColor (const Object &object) |
Gets the value of the SpecularColorProperty of an object. More... | |
static float | getSpecularExponent (const Object &object) |
Gets the value of the SpecularExponentProperty of an object. More... | |
static ResourceSharedPtr | getTexture (const Object &object) |
Gets the value of the TextureProperty of an object. More... | |
static PropertyTypeEditorInfoSharedPtr | makeEditorInfo () |
static void | setAmbientColor (Object &object, ColorRGBA value) |
Sets the value of the AmbientProperty of an object. More... | |
static void | setDiffuseColor (Object &object, ColorRGBA value) |
Sets the value of the DiffuseProperty of an object. More... | |
static void | setEmissiveColor (Object &object, ColorRGBA value) |
Sets the value of the EmissiveProperty of an object. More... | |
static void | setGlobalAmbientColor (Object &object, ColorRGBA value) |
Sets the value of GlobalAmbientProperty of an object. More... | |
static void | setSpecularColor (Object &object, ColorRGBA value) |
Sets the value of the SpecularColorProperty of an object. More... | |
static void | setSpecularExponent (Object &object, float value) |
Sets the value of the SpecularExponentProperty of an object. More... | |
static void | setTexture (Object &object, ResourceSharedPtr value) |
Sets the value of the TextureProperty of an object. More... | |
Static Public Attributes | |
Properties | |
static PropertyType< ColorRGBA > | GlobalAmbientProperty |
The color that is multiplied automatically with the AmbientProperty of the materials in the scene. More... | |
static PropertyType< ColorRGBA > | AmbientProperty |
The color of the material when lights are not present. More... | |
static PropertyType< ColorRGBA > | DiffuseProperty |
The color of the material when it is lit by a light. More... | |
static PropertyType< ColorRGBA > | EmissiveProperty |
The color of the light that is emitted from the material surface. More... | |
static PropertyType< ColorRGBA > | SpecularColorProperty |
The color of the specular reflection. More... | |
static PropertyType< float > | SpecularExponentProperty |
Determines the size of the specular highlight. More... | |
static PropertyType< ResourceSharedPtr > | TextureProperty |
The texture of the material. More... | |
static PropertyType< ResourceSharedPtr > | MaskTextureProperty |
The texture for masking other texture or color. More... | |
static PropertyType< Vector2 > | TextureTilingProperty |
Determines the number of times a texture is presented in a material. More... | |
static PropertyType< Vector2 > | TextureOffsetProperty |
The offset for texture in a material. More... | |
static PropertyType< Vector2 > | MaskTextureTilingProperty |
Determines the number of times a mask is presented in a material. More... | |
static PropertyType< Vector2 > | MaskTextureOffsetProperty |
Sets an offset for a mask in a material. More... | |
static PropertyType< float > | BlendIntensityProperty |
Controls the intensity of materials that are blended on top of an existing color. More... | |
static PropertyType< GraphicsBlendMode > | BlendModeProperty |
Controls how blending is performed. More... | |
static PropertyType< ResourceSharedPtr > | GlyphTextureProperty |
The automatic texture of the glyph cache. More... | |
Contains property types of Standard material.
|
static |
|
inlinestatic |
Gets the value of the GlobalAmbientProperty of an object.
object | The object from which to get the value of the GlobalAmbientProperty. |
|
inlinestatic |
Sets the value of GlobalAmbientProperty of an object.
object | The object on which to set the GlobalAmbientProperty. |
value | The value to which to set the GlobalAmbientProperty. |
Gets the value of the AmbientProperty of an object.
object | The object from which to get the value of the AmbientProperty. |
|
inlinestatic |
Sets the value of the AmbientProperty of an object.
object | The object on which to set the AmbientProperty. |
value | The value to which to set the AmbientProperty. |
Gets the value of the DiffuseProperty of an object.
object | The object from which to get the value of the DiffuseProperty. |
|
inlinestatic |
Sets the value of the DiffuseProperty of an object.
object | The object on which to set the DiffuseProperty. |
value | The value to which to set the DiffuseProperty. |
Gets the value of the EmissiveProperty of an object.
object | The object from which to get the value of the EmissiveProperty. |
|
inlinestatic |
Sets the value of the EmissiveProperty of an object.
object | The object on which to set the EmissiveProperty. |
value | The value to which to set the EmissiveProperty. |
Gets the value of the SpecularColorProperty of an object.
object | The object from which to get the value of the SpecularColorProperty. |
|
inlinestatic |
Sets the value of the SpecularColorProperty of an object.
object | The object on which to set the SpecularColorProperty. |
value | The value to which to set the SpecularColorProperty. |
|
inlinestatic |
Gets the value of the SpecularExponentProperty of an object.
object | The object from which to get the value of the SpecularExponentProperty. |
|
inlinestatic |
Sets the value of the SpecularExponentProperty of an object.
object | The object on which to set the SpecularExponentProperty. |
value | The value to which to set the SpecularExponentProperty. |
|
inlinestatic |
Gets the value of the TextureProperty of an object.
object | The object from which to get the value of the TextureProperty. |
|
inlinestatic |
Sets the value of the TextureProperty of an object.
object | The object on which to set the TextureProperty. |
value | The value to which to set the TextureProperty. |
|
static |
The color that is multiplied automatically with the AmbientProperty of the materials in the scene.
The default value is sRGB ColorRGBA(1.0f, 1.0f, 1.0f, 1.0f).
|
static |
The color of the material when lights are not present.
The default value is sRGB ColorRGBA(0.2f, 0.2f, 0.2f, 1.0f).
|
static |
The color of the material when it is lit by a light.
The default value is sRGB ColorRGBA(0.8f, 0.8f, 0.8f, 1.0f).
|
static |
The color of the light that is emitted from the material surface.
The default value is sRGB ColorRGBA(0.0f, 0.0f, 0.0f, 1.0f).
|
static |
The color of the specular reflection.
The default value is sRGB ColorRGBA(0.4980392f, 0.4980392f, 0.4980392f, 1.0f).
|
static |
Determines the size of the specular highlight.
The default value is 50.0f.
|
static |
The texture of the material.
The default value is ResourceSharedPtr().
|
static |
The texture for masking other texture or color.
The default value is ResourceSharedPtr().
|
static |
Determines the number of times a texture is presented in a material.
The default value is Vector2(1.0f, 1.0f).
|
static |
The offset for texture in a material.
The default value is Vector2(0.0f, 0.0f).
|
static |
Determines the number of times a mask is presented in a material.
The default value is Vector2(1.0f, 1.0f).
|
static |
Sets an offset for a mask in a material.
The default value is Vector2(0.0f, 0.0f).
|
static |
Controls the intensity of materials that are blended on top of an existing color.
The default value is 1.0f.
|
static |
Controls how blending is performed.
The default value is GraphicsBlendModeOpaque.
|
static |
The automatic texture of the glyph cache.
The default value is ResourceSharedPtr().