#include <SimplygonSDK.h>
INormalCasterSettings is the interface used to manage settings for a normal caster
Definition at line 10006 of file SimplygonSDK.h.
◆ GetClass()
virtual const char* SimplygonSDK::INormalCasterSettings::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.
◆ GetFlipBackfacingNormals()
virtual bool SimplygonSDK::INormalCasterSettings::GetFlipBackfacingNormals |
( |
| ) |
|
|
pure virtual |
Get the FlipBackfacingNormals flag. If set, then normals will be flipped if they are back facing, i.e., pointing into the surface. This may introduce artifacts on geometries that have correctly facing normals, so only use for geometries with known back-facing normals.
- Returns
- the current value of the FlipBackfacingNormals bool
◆ GetFlipGreen()
virtual bool SimplygonSDK::INormalCasterSettings::GetFlipGreen |
( |
| ) |
|
|
pure virtual |
Get the FlipGreen flag. If set, the green channel is assumed to point along the negative bitangent instead of the positive.
- Returns
- the current value of the FlipGreen bool
◆ GetGenerateTangentSpaceNormals()
virtual bool SimplygonSDK::INormalCasterSettings::GetGenerateTangentSpaceNormals |
( |
| ) |
|
|
pure virtual |
Get the GenerateTangentSpaceNormals flag. If set, then the generated normal map will be in tangent space. Please note that the geometry casted to must contain tangent space fields.
- Returns
- the current value of the GenerateTangentSpaceNormals bool
◆ IsA()
virtual bool SimplygonSDK::INormalCasterSettings::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::INormalCasterSettings::IsClassA |
( |
const char * |
type | ) |
|
|
inlinestatic |
The IsClassA function returns true if INormalCasterSettings 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 10027 of file SimplygonSDK.h.
◆ SafeCast()
SafeCast makes sure the pointer is of a class that can be cast into a INormalCasterSettings pointer, and if this is possible, returns the cast pointer.
- Parameters
-
- Returns
- a pointer to the INormalCasterSettings object, if the cast can be made, and a NULL pointer otherwise
Definition at line 10040 of file SimplygonSDK.h.
◆ SetFlipBackfacingNormals()
virtual void SimplygonSDK::INormalCasterSettings::SetFlipBackfacingNormals |
( |
bool |
value | ) |
|
|
pure virtual |
Set the FlipBackfacingNormals flag. If set, then normals will be flipped if they are back facing, i.e., pointing into the surface. This may introduce artifacts on geometries that have correctly facing normals, so only use for geometries with known back-facing normals.
- Parameters
-
value | is the value to which the FlipBackfacingNormals bool is to be set |
◆ SetFlipGreen()
virtual void SimplygonSDK::INormalCasterSettings::SetFlipGreen |
( |
bool |
value | ) |
|
|
pure virtual |
Set the FlipGreen flag. If set, the green channel is assumed to point along the negative bitangent instead of the positive.
- Parameters
-
value | is the value the FlipGreen bool is to be set |
◆ SetGenerateTangentSpaceNormals()
virtual void SimplygonSDK::INormalCasterSettings::SetGenerateTangentSpaceNormals |
( |
bool |
value | ) |
|
|
pure virtual |
Set the GenerateTangentSpaceNormals flag. If set, then the generated normal map will be in tangent space. Please note that the geometry casted to must contain tangent space fields.
- Parameters
-
value | is the value to which the GenerateTangentSpaceNormals bool is to be set |
The documentation for this class was generated from the following file: