vrdEnvironmentShadowsAndIllumination¶
-
class
vrdEnvironmentShadowsAndIllumination¶
(Inherits vrdSceneObject)
This class is used for all environment shadow and illumination properties.
Summary¶
- Functions:
- getGroundShadowIntensity() → float
- getLightsourcesCount() → integer
- getMapFilterRadius() → float
- getMapResolution() → integer
- getMaterialShadowIntensity() → float
- getUseLightsourcesOnly() → integer
- setGroundShadowIntensity(value)
- setLightsourcesCount(value)
- setMapFilterRadius(value)
- setMapResolution(value)
- setMaterialShadowIntensity(value)
- setUseLightsourcesOnly(value)
Functions¶
-
vrdEnvironmentShadowsAndIllumination.getGroundShadowIntensity()¶ Gets the shadow intensity of the generated light sources on the shadow material.
Returns: Current intensity Return type: float
-
vrdEnvironmentShadowsAndIllumination.getLightsourcesCount()¶ Returns: Current number of light sources to be created from the HDR Return type: integer
-
vrdEnvironmentShadowsAndIllumination.getMapFilterRadius()¶ Gets the radius used for filtering the shadow map lookup in OpenGL.
Returns: Current map filter radius Return type: float
-
vrdEnvironmentShadowsAndIllumination.getMapResolution()¶ Gets the resolution of OpenGL shadow maps.
Returns: Current shadow map resolution Return type: integer
-
vrdEnvironmentShadowsAndIllumination.getMaterialShadowIntensity()¶ Gets the shadow intensity of the generated light sources on BRDF based materials.
Returns: The current intensity Return type: float
-
vrdEnvironmentShadowsAndIllumination.getUseLightsourcesOnly()¶ Returns: True if only the shadow light sources generated for the environment will be used for illumination, False if a combination of prefiltered environment maps and light sources will be used. Return type: integer
-
vrdEnvironmentShadowsAndIllumination.setGroundShadowIntensity(value)¶ Sets the shadow intensity of the generated light sources on the shadow material.
Parameters: value (float) – New intensity
-
vrdEnvironmentShadowsAndIllumination.setLightsourcesCount(value)¶ Specifies the number of light sources to be created from the HDR.
Parameters: value (integer) – New number of lightsources
-
vrdEnvironmentShadowsAndIllumination.setMapFilterRadius(value)¶ Sets the radius used for filtering the shadow map lookup in OpenGL.
Parameters: value (float) – New map filter radius from 0 to 10
-
vrdEnvironmentShadowsAndIllumination.setMapResolution(value)¶ Sets the resolution of OpenGL shadow maps. Higher values increase the quality.
Parameters: value (integer) – New shadow map resolution
-
vrdEnvironmentShadowsAndIllumination.setMaterialShadowIntensity(value)¶ Sets the shadow intensity of the generated light sources on BRDF based materials.
Parameters: value (float) – New intensity
-
vrdEnvironmentShadowsAndIllumination.setUseLightsourcesOnly(value)¶ If enabled only the shadow light sources generated for the environment will be used for illumination, otherwise a combination of prefiltered environment maps and light sources will be used.
Parameters: value (bool) – New state.