Fermat
|
Represent a Virtual Triangular Light
#include <vtl.h>
Public Methods | |
FERMAT_HOST_DEVICE FERMAT_FORCEINLINE | VTL (const uint32 _prim_id, const float2 _uv0, const float2 _uv1, const float2 _uv2, const float _area) |
FERMAT_HOST_DEVICE FERMAT_FORCEINLINE void | interpolate_positions (MeshView mesh, cugar::Vector3f &p0, cugar::Vector3f &p1, cugar::Vector3f &p2) const |
FERMAT_HOST_DEVICE FERMAT_FORCEINLINE void | interpolate_tex_coords (MeshView mesh, cugar::Vector2f &t0, cugar::Vector2f &t1, cugar::Vector2f &t2) const |
FERMAT_HOST_DEVICE FERMAT_FORCEINLINE cugar::Vector2f | interpolate_uv (const cugar::Vector2f &uv) const |
FERMAT_HOST_DEVICE FERMAT_FORCEINLINE cugar::Vector2f | uv_centroid () const |
FERMAT_HOST_DEVICE FERMAT_FORCEINLINE cugar::Vector3f | centroid (MeshView mesh) const |
Public Members | |
uint32 | prim_id |
float | area |
cugar::Vector2f | uv0 |
cugar::Vector2f | uv1 |
cugar::Vector2f | uv2 |