KiCad PCB EDA Suite
HITINFO Struct Reference

Stores the hit information of a ray with a point on the surface of a object. More...

#include <hitinfo.h>

Public Attributes

SFVEC3F m_HitNormal
 (12) normal at the hit point More...
 
float m_tHit
 ( 4) distance More...
 
const COBJECTpHitObject
 ( 4) Object that was hitted More...
 
SFVEC2F m_UV
 ( 8) 2-D texture coordinates More...
 
unsigned int m_acc_node_info
 ( 4) The acc stores here the node that it hits More...
 
SFVEC3F m_HitPoint
 (12) hit position More...
 
float m_ShadowFactor
 ( 4) Shadow attenuation (1.0 no shadow, 0.0f darkness) More...
 

Detailed Description

Stores the hit information of a ray with a point on the surface of a object.

Definition at line 40 of file hitinfo.h.

Member Data Documentation

unsigned int HITINFO::m_acc_node_info

( 4) The acc stores here the node that it hits

Definition at line 47 of file hitinfo.h.

Referenced by HITINFO_PACKET_init(), CBVH_PBRT::Intersect(), and C3D_RENDER_RAYTRACING::rt_trace_AA_packet().

float HITINFO::m_ShadowFactor

( 4) Shadow attenuation (1.0 no shadow, 0.0f darkness)

Definition at line 50 of file hitinfo.h.

Referenced by HITINFO_PACKET_init(), and C3D_RENDER_RAYTRACING::shadeHit().

SFVEC2F HITINFO::m_UV

( 8) 2-D texture coordinates

Definition at line 46 of file hitinfo.h.

Referenced by CTRIANGLE::GetDiffuseColor().


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