|
Rendu
A lightweight rendering engine for experimentations
|
#include <Raycaster.hpp>
Public Member Functions | |
| Hit () | |
| Hit (float distance, float uu, float vv, unsigned long lid, unsigned long mid) | |
Private Attributes | |
| unsigned long | internalId |
| Index of the triangle in the raycaster internal primitive list. | |
Friends | |
| class | RaycasterVisualisation |
| For debug visualisation. | |
Represent a hit event between a ray and the geometry.
| Raycaster::Hit::Hit | ( | ) |
Default constructor ('no hit' case).
| Raycaster::Hit::Hit | ( | float | distance, |
| float | uu, | ||
| float | vv, | ||
| unsigned long | lid, | ||
| unsigned long | mid | ||
| ) |
Constructore ('hit' case).
| distance | the distance from the ray origin to the hit location |
| uu | first barycentric coordinate |
| vv | second barycentric coordinate |
| lid | position of the hit triangle first vertex in the mesh index buffer |
| mid | index of the mesh hit by the ray |