NVIDIA IndeX API nvidia_logo_transpbg.gif Up
xac_interface_scene_elements_particle_volume_doc.h
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright 2023 NVIDIA Corporation. All rights reserved.
3 *****************************************************************************/
6
7namespace nv {
8namespace index {
9namespace xac {
10
14{
17
20};
21
25{
26public:
28
30 uint get_light_id() const;
31
33 uint get_material_id() const;
34
36 const float3& get_dataset_bbox_min() const;
37
39 const float3& get_dataset_bbox_max() const;
40
42 const Mat4x4f& get_scene_to_object_transform() const;
43
46
48 template<typename Attrib_type>
49 Attrib_type fetch_attribute(
50 const uint attrib_idx,
51 const uint particle_idx) const;
52}; // class Particle_volume
53
54} // namespace xac
55} // namespace index
56} // namespace nv
Particle volume reference class.
Definition: xac_interface_scene_elements_particle_volume_doc.h:25
const Mat4x4f & get_scene_to_object_transform_inverse() const
Get transformation amtrix to transform from object space into scene space.
uint get_light_id() const
Get id of the associated light element.
const float3 & get_dataset_bbox_max() const
Get the maximum point of the boundix box of the particle volume.
const Mat4x4f & get_scene_to_object_transform() const
Get transformation matrix to transform from scene space into local object space.
uint get_material_id() const
Get id of associated material element.
const float3 & get_dataset_bbox_min() const
Get the minimum point of the boundix box of the particle volume.
Attrib_type fetch_attribute(const uint attrib_idx, const uint particle_idx) const
Get the irregular volume bounding box minimum coordinate.
Common namespace for all NVIDIA APIs.
Definition: iindex.h:349
Sample information for particle volumes.
Definition: xac_interface_scene_elements_particle_volume_doc.h:14
uint particle_index
Index of the currently rendered particle.
Definition: xac_interface_scene_elements_particle_volume_doc.h:19
float3 sample_normal
Vector of the current particle normal.
Definition: xac_interface_scene_elements_particle_volume_doc.h:16
Generic ray sampling information.
Definition: xac_interface_sample_info_doc.h:16