vrdChromeMaterial¶
-
class
vrdChromeMaterial
¶
(Inherits vrdBRDFMaterial
)
This class is used to handle all chrome material properties.
Summary¶
- Functions:
- getBumpTexture() → vrdBumpTexture
- getContrast() → float
- getDisplacementTexture() → vrdDisplacementTexture
- getIncandescence() → vrdIncandescence
- getMetalType() → vrdChromeMaterial.MetalType
- getReflectionColor() → QVector3D
- getReflectionColorSpectrum() → vrSpectrum
- getRoughness() → float
- getRoughnessTexture() → vrdRoughnessTexture
- getSaturation() → float
- getSmear() → float
- getUseRoughness() → bool
- setContrast(contrast)
- setMetalType(type)
- setReflectionColor(color)
- setReflectionColorSpectrum(value)
- setRoughness(roughness)
- setSaturation(saturation)
- setSmear(smear)
- setUseRoughness(use)
Functions¶
-
vrdChromeMaterial.
getBumpTexture
()¶ Gets access to all properties of vrdBumpTexture.
Returns: An vrdBumpTexture object, to read and write access of alls properties. Return type: vrdBumpTexture
-
vrdChromeMaterial.
getContrast
()¶ Gets the current used the sharpness of reflections.
Returns: Current value of the sharpness of reflections. Return type: float
-
vrdChromeMaterial.
getDisplacementTexture
()¶ Gets access to all properties of vrdDisplacementTexture.
Returns: An vrdDisplacementTexture object, to read and write access of alls properties. Return type: vrdDisplacementTexture
-
vrdChromeMaterial.
getIncandescence
()¶ Gets access to all properties of vrdIncandescence.
Returns: An vrdIncandescence object, to read and write access of alls properties. Return type: vrdIncandescence
-
vrdChromeMaterial.
getMetalType
()¶ Gets the used type of used metal.
Returns: The used type of used metal. Return type: vrdChromeMaterial.MetalType
-
vrdChromeMaterial.
getReflectionColor
()¶ Get the currently used chrome reflection color.
Returns: The currently used chrome reflection color. Return type: QVector3D
-
vrdChromeMaterial.
getReflectionColorSpectrum
()¶ Gets the reflection color spectrum.
Returns: The current used spectrum for reflection color. Return type: vrSpectrum
-
vrdChromeMaterial.
getRoughness
()¶ Returns: The current value of roughness for this material. Return type: float
-
vrdChromeMaterial.
getRoughnessTexture
()¶ Gets access to all properties of vrdRoughnessTexture.
Returns: An vrdRoughnessTexture object, to read and write access of alls properties. Return type: vrdRoughnessTexture
-
vrdChromeMaterial.
getSaturation
()¶ Gets the current value of saturation.
Returns: The current value of saturation. Return type: float
-
vrdChromeMaterial.
getSmear
()¶ Gets the current used the reflection’s blur amount.
Returns: The current used reflection’s blur amount. Return type: float
-
vrdChromeMaterial.
getUseRoughness
()¶ Gets if glossy reflections controlled by roughness value are enabled for this material.
Returns: The current enable or disable roughness state. Return type: bool
-
vrdChromeMaterial.
setContrast
(contrast)¶ Sets the sharpness of reflections. Increase contrast with multiple reflections to draw out more detail.
Parameters: contrast (float) – The sharpness of reflections.
-
vrdChromeMaterial.
setMetalType
(type)¶ Sets the metal types used, changing the characteristics of the metal.
Parameters: type (vrdChromeMaterial.MetalType) – The new type of used metal. See MetalType for all supported types.
-
vrdChromeMaterial.
setReflectionColor
(color)¶ Sets the chrome reflection color. When the chrome reflection is colored, reflected objects are also colored.
Parameters: color (QVector3D) – New chrome reflection color.
-
vrdChromeMaterial.
setReflectionColorSpectrum
(value)¶ Sets the reflection color spectrum.
Parameters: value (vrSpectrum) – New spectrum for reflection color
-
vrdChromeMaterial.
setRoughness
(roughness)¶ Controls the sharpness of the glossy reflections. The higher the value, the rougher the microscopic structure of the surface.
The roughness value is used when Use Roughness is enabled and no roughness texture is active.
Parameters: roughness (float) – New value of roughness for this material.
-
vrdChromeMaterial.
setSaturation
(saturation)¶ Affects the specular reflection. The higher the saturation, the less the specular reflection.
Parameters: saturation (float) – Set the current value of saturation.
-
vrdChromeMaterial.
setSmear
(smear)¶ Sets the reflection’s blur amount. Only supported in OpenGL rendering mode.
Parameters: smear (float) – The reflection’s blur amount.
-
vrdChromeMaterial.
setUseRoughness
(use)¶ Enable or disable the use glossy reflections controlled by roughness value for this material. When disabled, specular reflections are used.
Parameters: use (bool) – Set the new enable or disable state.