cgv
Loading...
Searching...
No Matches
cgv::data::ray_intersection_info Struct Reference

Holds information about a single intersection of a ray and primitive. More...

#include <bvh.h>

Public Attributes

float t = std::numeric_limits<float>::max()
 The ray parameter.
 
cgv::vec3 normal
 The intersection surface normal.
 
cgv::vec2 uv
 The intersection surface texture coordinates.
 

Detailed Description

Holds information about a single intersection of a ray and primitive.

Definition at line 17 of file bvh.h.

Member Data Documentation

◆ normal

cgv::vec3 cgv::data::ray_intersection_info::normal

The intersection surface normal.

Definition at line 21 of file bvh.h.

◆ t

float cgv::data::ray_intersection_info::t = std::numeric_limits<float>::max()

The ray parameter.

Definition at line 19 of file bvh.h.

Referenced by cgv::data::bvh::closest_intersection().

◆ uv

cgv::vec2 cgv::data::ray_intersection_info::uv

The intersection surface texture coordinates.

Definition at line 23 of file bvh.h.


The documentation for this struct was generated from the following file: