#include <SimplygonSDK.h>
INormalCaster is the interface used to cast normals data onto the receiving geometry.
Definition at line 9884 of file SimplygonSDK.h.
◆ GetClass()
virtual const char* SimplygonSDK::INormalCaster::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.
◆ GetFlipBackfacingNormals()
virtual bool SimplygonSDK::INormalCaster::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::INormalCaster::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::INormalCaster::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
◆ GetNormalCasterSettings()
Get the normal caster settings object
- Returns
- Normal caster settings object
◆ GetNormalsChannel()
virtual rstring SimplygonSDK::INormalCaster::GetNormalsChannel |
( |
| ) |
|
|
pure virtual |
Get which normals channel to cast. The default value is SG_MATERIAL_CHANNEL_NORMALS.
- Returns
- the desired normals channel
◆ IsA()
virtual bool SimplygonSDK::INormalCaster::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::INormalCaster::IsClassA |
( |
const char * |
type | ) |
|
|
inlinestatic |
The IsClassA function returns true if INormalCaster 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 9905 of file SimplygonSDK.h.
◆ SafeCast()
SafeCast makes sure the pointer is of a class that can be cast into a INormalCaster pointer, and if this is possible, returns the cast pointer.
- Parameters
-
- Returns
- a pointer to the INormalCaster object, if the cast can be made, and a NULL pointer otherwise
Definition at line 9918 of file SimplygonSDK.h.
◆ SetFlipBackfacingNormals()
virtual void SimplygonSDK::INormalCaster::SetFlipBackfacingNormals |
( |
bool |
FlipBackfacingNormals | ) |
|
|
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
-
FlipBackfacingNormals | the desired flag value |
◆ SetFlipGreen()
virtual void SimplygonSDK::INormalCaster::SetFlipGreen |
( |
bool |
FlipGreen | ) |
|
|
pure virtual |
Set the FlipGreen flag. If set, the green channel is assumed to point along the negative bitangent instead of the positive.
- Parameters
-
FlipGreen | the desired flag value |
◆ SetGenerateTangentSpaceNormals()
virtual void SimplygonSDK::INormalCaster::SetGenerateTangentSpaceNormals |
( |
bool |
GenerateTangentSpaceNormals | ) |
|
|
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
-
GenerateTangentSpaceNormals | the desired flag value |
◆ SetNormalsChannel()
virtual void SimplygonSDK::INormalCaster::SetNormalsChannel |
( |
const char * |
NormalsChannel | ) |
|
|
pure virtual |
Set which normals channel to cast. The default value is SG_MATERIAL_CHANNEL_NORMALS.
- Parameters
-
NormalsChannel | the material channel name |
The documentation for this class was generated from the following file: