Sample information for triangle mesh surfaces. More...
#include <xac_interface_sample_info_doc.h>
Public Attributes | |
float2 | texture_coordinates |
2D texture coordinates of the surface at the current sample position More... | |
float4 | vertex_color |
Interpolated vertex color at the current sample position. Is set to (1, 1, 1, 1) when undefined. More... | |
float4 | texture_color |
Interpolated texture color at the current sample position. Is set to (1, 1, 1, 1) when undefined. More... | |
unsigned | material_id |
Identifier of the material of the triangle at the current sample position. Is set to 0 when undefined or no material is present. More... | |
unsigned | colormap_id |
Colormap Identifier of the material of the triangle at the current sample position. Is set to 0 when undefined or no colormap is present. More... | |
Public Attributes inherited from nv::index::xac::Sample_info_surface | |
float3 | sample_normal |
The direction of the surface normal at the current sample position. More... | |
float4 | sample_color |
Input sample color of the surface at the current sample position. Is set to (0, 0, 0, 0) when undefined. More... | |
Public Attributes inherited from nv::index::xac::Sample_info | |
float | ray_t |
The distance (or depth) of the current sample position along the view ray. More... | |
float3 | ray_origin |
Ray source position in scene space coordinates. More... | |
float3 | ray_direction |
Ray direction in scene space coordinates. More... | |
float3 | scene_position |
Position of the current sample point in scene space coordinates. More... | |
Sample information for triangle mesh surfaces.
unsigned nv::index::xac::Sample_info_triangle_mesh::colormap_id |
Colormap Identifier of the material of the triangle at the current sample position. Is set to 0 when undefined or no colormap is present.
unsigned nv::index::xac::Sample_info_triangle_mesh::material_id |
Identifier of the material of the triangle at the current sample position. Is set to 0 when undefined or no material is present.
float4 nv::index::xac::Sample_info_triangle_mesh::texture_color |
Interpolated texture color at the current sample position. Is set to (1, 1, 1, 1) when undefined.
float2 nv::index::xac::Sample_info_triangle_mesh::texture_coordinates |
2D texture coordinates of the surface at the current sample position
float4 nv::index::xac::Sample_info_triangle_mesh::vertex_color |
Interpolated vertex color at the current sample position. Is set to (1, 1, 1, 1) when undefined.