SurfaceIntersection Struct Reference

#include <c4d_shader.h>

Detailed Description

A structure for surface intersections.

Public Member Functions

 SurfaceIntersection ()
 
 SurfaceIntersection (_DONTCONSTRUCT dc)
 

Public Attributes

const RayObjectop
 
RayHitID id
 
Vector64 p
 
Vector64 n
 
Int32 sid
 
Float par_u
 
Float par_v
 

Constructor & Destructor Documentation

◆ SurfaceIntersection() [1/2]

Default constructor.

◆ SurfaceIntersection() [2/2]

Creates an uninitialized surface intersection structure.

Parameters
[in]dcDummy argument. Pass DC.

Member Data Documentation

◆ op

const RayObject* op

Intersected object.

◆ id

Ray hit identity.

◆ p

Point.

◆ n

Normal.

◆ sid

Int32 sid

Sub-ID (only used for SPD).

◆ par_u

Float par_u

Barycentric U coordinate (only used for SPD).

◆ par_v

Float par_v

Barycentric V coordinate (only used for SPD).