KiCad PCB EDA Suite
Loading...
Searching...
No Matches
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 OBJECT_3DpHitObject
 ( 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 35 of file hitinfo.h.

Member Data Documentation

◆ m_acc_node_info

unsigned int HITINFO::m_acc_node_info

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

Definition at line 42 of file hitinfo.h.

Referenced by HITINFO_PACKET_init(), BVH_PBRT::Intersect(), and RENDER_3D_RAYTRACE_BASE::renderAntiAliasPackets().

◆ m_HitNormal

◆ m_HitPoint

◆ m_ShadowFactor

float HITINFO::m_ShadowFactor

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

Definition at line 45 of file hitinfo.h.

Referenced by HITINFO_PACKET_init(), RENDER_3D_RAYTRACE_BASE::renderBlockTracing(), and RENDER_3D_RAYTRACE_BASE::shadeHit().

◆ m_tHit

◆ m_UV

SFVEC2F HITINFO::m_UV

( 8) 2-D texture coordinates

Definition at line 41 of file hitinfo.h.

Referenced by TRIANGLE::GetDiffuseColor().

◆ pHitObject


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