#include <ITangentSpaceHelper.h>
|
| AZ_RTTI (ITangentSpaceHelper, "{1D96A3F2-7EC7-4DD0-A874-7C2ED4D6F360}") |
|
virtual bool | CalculateNormals (const AZStd::vector< SimParticleFormat > &vertices, const AZStd::vector< SimIndexType > &indices, AZStd::vector< AZ::Vector3 > &outNormals)=0 |
|
virtual bool | CalculateTangentsAndBitagents (const AZStd::vector< SimParticleFormat > &vertices, const AZStd::vector< SimIndexType > &indices, const AZStd::vector< SimUVType > &uvs, const AZStd::vector< AZ::Vector3 > &normals, AZStd::vector< AZ::Vector3 > &outTangents, AZStd::vector< AZ::Vector3 > &outBitangents)=0 |
|
virtual bool | CalculateTangentSpace (const AZStd::vector< SimParticleFormat > &vertices, const AZStd::vector< SimIndexType > &indices, const AZStd::vector< SimUVType > &uvs, AZStd::vector< AZ::Vector3 > &outTangents, AZStd::vector< AZ::Vector3 > &outBitangents, AZStd::vector< AZ::Vector3 > &outNormals)=0 |
|
Interface that provides a set of functions to calculate tangent space information for cloth's particles.
- Note
- Use AZ::Interface<ITangentSpaceHelper>::Get() to call the interface, which is available at both runtime and asset processing time (asset builders).
◆ CalculateNormals()
virtual bool NvCloth::ITangentSpaceHelper::CalculateNormals |
( |
const AZStd::vector< SimParticleFormat > & |
vertices, |
|
|
const AZStd::vector< SimIndexType > & |
indices, |
|
|
AZStd::vector< AZ::Vector3 > & |
outNormals |
|
) |
| |
|
pure virtual |
Calculates the normals of a simulation mesh.
- Parameters
-
vertices | List of particles, which are composed of positions and inverse masses. |
indices | List of triangles' indices. |
outNormals | The resulted list of normals. |
- Returns
- Whether it was able to calculate the normals or not.
◆ CalculateTangentsAndBitagents()
virtual bool NvCloth::ITangentSpaceHelper::CalculateTangentsAndBitagents |
( |
const AZStd::vector< SimParticleFormat > & |
vertices, |
|
|
const AZStd::vector< SimIndexType > & |
indices, |
|
|
const AZStd::vector< SimUVType > & |
uvs, |
|
|
const AZStd::vector< AZ::Vector3 > & |
normals, |
|
|
AZStd::vector< AZ::Vector3 > & |
outTangents, |
|
|
AZStd::vector< AZ::Vector3 > & |
outBitangents |
|
) |
| |
|
pure virtual |
Calculates the tangents and bitangents of a simulation mesh.
- Parameters
-
vertices | List of particles, which are composed of positions and inverse masses. |
indices | List of triangles' indices. |
uvs | List of UVs coordinates of the mesh. |
normals | List of normals of the mesh. |
outTangents | The resulted list of tangents. |
outBitangents | The resulted list of bitangents. |
- Returns
- Whether it was able to calculate the tangents and bitangents or not.
◆ CalculateTangentSpace()
virtual bool NvCloth::ITangentSpaceHelper::CalculateTangentSpace |
( |
const AZStd::vector< SimParticleFormat > & |
vertices, |
|
|
const AZStd::vector< SimIndexType > & |
indices, |
|
|
const AZStd::vector< SimUVType > & |
uvs, |
|
|
AZStd::vector< AZ::Vector3 > & |
outTangents, |
|
|
AZStd::vector< AZ::Vector3 > & |
outBitangents, |
|
|
AZStd::vector< AZ::Vector3 > & |
outNormals |
|
) |
| |
|
pure virtual |
Calculates the tangents, bitangents and normals of a simulation mesh.
- Parameters
-
vertices | List of particles, which are composed of positions and inverse masses. |
indices | List of triangles' indices. |
uvs | List of UVs coordinates of the mesh. |
outTangents | The resulted list of tangents. |
outBitangents | The resulted list of bitangents. |
outNormals | The resulted list of normals. |
- Returns
- Whether it was able to calculate the tangents, bitangents and normals or not.
The documentation for this class was generated from the following file:
- Gems/NvCloth/Code/Include/NvCloth/ITangentSpaceHelper.h