#include <SimplygonSDK.h>
IAmbientOcclusionCaster generates an ambient occlusion map based on the original geometry, and casts it
Definition at line 19029 of file SimplygonSDK.h.
◆ GetAmbientOcclusionCasterSettings()
Get the ambient occlusion caster settings object
- Returns
- Ambient occlusion caster settings object
◆ GetClass()
virtual const char* SimplygonSDK::IAmbientOcclusionCaster::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::IMaterialCaster.
◆ GetColorType()
virtual rstring SimplygonSDK::IAmbientOcclusionCaster::GetColorType |
( |
| ) |
|
|
pure virtual |
Get which material channel to cast. The material channels are defined as SG_MATERIAL_CHANNEL_[ CHANNEL ]. For example, the diffuse channel is SG_MATERIAL_CHANNEL_DIFFUSE.
- Returns
- the current material channel.
◆ GetOcclusionFalloff()
virtual real SimplygonSDK::IAmbientOcclusionCaster::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::IAmbientOcclusionCaster::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::IAmbientOcclusionCaster::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::IAmbientOcclusionCaster::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::IAmbientOcclusionCaster::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::IMaterialCaster.
◆ IsClassA()
static bool SimplygonSDK::IAmbientOcclusionCaster::IsClassA |
( |
const char * |
type | ) |
|
|
inlinestatic |
The IsClassA function returns true if IAmbientOcclusionCaster 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 19050 of file SimplygonSDK.h.
◆ SafeCast()
◆ SetAdditionalSourceScene()
virtual void SimplygonSDK::IAmbientOcclusionCaster::SetAdditionalSourceScene |
( |
IScene * |
value | ) |
|
|
pure virtual |
Set an additional scene that will be used to compute the ambient occlusion on the main scene.
- Parameters
-
value | the additional scene |
◆ SetColorType()
virtual void SimplygonSDK::IAmbientOcclusionCaster::SetColorType |
( |
const char * |
ColorType | ) |
|
|
pure virtual |
Set which material channel to cast. The material channels are defined as SG_MATERIAL_CHANNEL_[ CHANNEL ]. Or a custom channel name. For example, the diffuse channel is SG_MATERIAL_CHANNEL_DIFFUSE.
- Parameters
-
ColorType | the material channel name |
◆ SetOcclusionFalloff()
virtual void SimplygonSDK::IAmbientOcclusionCaster::SetOcclusionFalloff |
( |
real |
OcclusionFalloff | ) |
|
|
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
-
OcclusionFalloff | the falloff value |
◆ SetOcclusionMultiplier()
virtual void SimplygonSDK::IAmbientOcclusionCaster::SetOcclusionMultiplier |
( |
real |
OcclusionMultiplier | ) |
|
|
pure virtual |
Set the occlusion multiplier. This is just a basic intensity scaler. Higher is "darker".
- Parameters
-
OcclusionMultiplier | the multiplier |
◆ SetRaysPerPixel()
virtual void SimplygonSDK::IAmbientOcclusionCaster::SetRaysPerPixel |
( |
unsigned int |
RaysPerPixel | ) |
|
|
pure virtual |
Set the rays per pixel. This determines how many rays are traced per pixel (or subpixel) to evaluate the occlusion.
- Parameters
-
RaysPerPixel | the number of rays to use per pixel |
◆ SetUseSimpleOcclusionMode()
virtual void SimplygonSDK::IAmbientOcclusionCaster::SetUseSimpleOcclusionMode |
( |
bool |
UseSimpleOcclusionMode | ) |
|
|
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
-
UseSimpleOcclusionMode | the desired flag value |
The documentation for this class was generated from the following file: