#include <SimplygonSDK.h>
IAmbientOcclusionCasterSettings manages settings for an ambient occlusion caster
Definition at line 19172 of file SimplygonSDK.h.
◆ GetClass()
virtual const char* SimplygonSDK::IAmbientOcclusionCasterSettings::GetClass |
( |
| ) |
|
|
virtual |
GetClass returns the name of the class of the object.
- Returns
- the name of the actual class of the object, as a const char string
Reimplemented from SimplygonSDK::IMaterialCasterSettings.
◆ GetOcclusionFalloff()
virtual real SimplygonSDK::IAmbientOcclusionCasterSettings::GetOcclusionFalloff |
( |
| ) |
|
|
pure virtual |
Get the occlusion falloff, ie. how far away a surface has to be from another surface to generate no occlusion. Only applicable if SimpleOcclusionMode is off.
- Returns
- the occlusion falloff
◆ GetOcclusionMultiplier()
virtual real SimplygonSDK::IAmbientOcclusionCasterSettings::GetOcclusionMultiplier |
( |
| ) |
|
|
pure virtual |
Get the occlusion multiplier. This is just a basic intensity scaler. Higher is "darker".
- Returns
- the occlusion multiplier
◆ GetRaysPerPixel()
virtual unsigned int SimplygonSDK::IAmbientOcclusionCasterSettings::GetRaysPerPixel |
( |
| ) |
|
|
pure virtual |
Get the rays per pixel. This determines how many rays are traced per pixel (or subpixel) to evaluate the occlusion.
- Returns
- the number of rays
◆ GetUseSimpleOcclusionMode()
virtual bool SimplygonSDK::IAmbientOcclusionCasterSettings::GetUseSimpleOcclusionMode |
( |
| ) |
|
|
pure virtual |
Get the SimpleOcclusionMode flag. If set, occlusion will not scale with distance, each ray will only be either fully occluded or not at all. Speeds up processing time.
- Returns
- the current value of UseSimpleOcclusionMode
◆ IsA()
virtual bool SimplygonSDK::IAmbientOcclusionCasterSettings::IsA |
( |
const char * |
type | ) |
const |
|
virtual |
The IsA function returns true if the object is a or is a descendant of the class named as the type parameter
- Parameters
-
type | is the name of the class to check if the object is, or is a descendant of |
- Returns
- true if the object is of the specified class, false if not
Reimplemented from SimplygonSDK::IMaterialCasterSettings.
◆ IsClassA()
static bool SimplygonSDK::IAmbientOcclusionCasterSettings::IsClassA |
( |
const char * |
type | ) |
|
|
inlinestatic |
The IsClassA function returns true if IAmbientOcclusionCasterSettings is a or is a descendant of the class named as the type parameter
- Parameters
-
type | is the name of the class to check if the class is, or is a descendant of |
- Returns
- true if the class is of the specified class, false if not
Definition at line 19193 of file SimplygonSDK.h.
◆ SafeCast()
◆ SetOcclusionFalloff()
virtual void SimplygonSDK::IAmbientOcclusionCasterSettings::SetOcclusionFalloff |
( |
real |
value | ) |
|
|
pure virtual |
Set the occlusion falloff, ie. how far away a surface has to be from another surface to generate no occlusion. Only applicable if SimpleOcclusionMode is off.
- Parameters
-
value | the far occlusion falloff |
◆ SetOcclusionMultiplier()
virtual void SimplygonSDK::IAmbientOcclusionCasterSettings::SetOcclusionMultiplier |
( |
real |
value | ) |
|
|
pure virtual |
Set the occlusion multiplier. This is just a basic intensity scaler. Higher is "darker".
- Parameters
-
value | the occlusion multiplier |
◆ SetRaysPerPixel()
virtual void SimplygonSDK::IAmbientOcclusionCasterSettings::SetRaysPerPixel |
( |
unsigned int |
value | ) |
|
|
pure virtual |
Set the rays per pixel. This determines how many rays are traced per pixel (or subpixel) to evaluate the occlusion.
- Parameters
-
value | the desired number of rays |
◆ SetUseSimpleOcclusionMode()
virtual void SimplygonSDK::IAmbientOcclusionCasterSettings::SetUseSimpleOcclusionMode |
( |
bool |
value | ) |
|
|
pure virtual |
Set the SimpleOcclusionMode flag. If set, occlusion will not scale with distance, each ray will only be either fully occluded or not at all. Speeds up processing time.
- Parameters
-
value | the flag to which UseSimpleOcclusionMode will be set |
The documentation for this class was generated from the following file: