This class provides utilities to view a VTL-mesh, i.e. a collection of mesh-based VTLs. Particularly, it provides methods to sample a given VTL, and methods to locate/map a VTL from a given mesh point.
|
FERMAT_HOST_DEVICE | VTLMeshView (const uint32 _n_vtls, const VTL *_vtls, const UVBvhView &_uvbvh, const MeshView &_mesh, const MipMapView *_textures) |
|
FERMAT_HOST_DEVICE void | sample (const uint32 vtl_idx, const cugar::Vector2f vtl_uv, uint32_t *prim_id, cugar::Vector2f *uv, VertexGeometry *geom, float *pdf, Edf *edf) const |
|
FERMAT_HOST_DEVICE uint32 | map (const uint32_t prim_id, const cugar::Vector2f &uv, const VertexGeometry &geom, float *pdf, Edf *edf) const |
|
FERMAT_HOST_DEVICE uint32 | vtl_count () const |
|
FERMAT_HOST_DEVICE VTL | get_vtl (const uint32 i) const |
|