Ray Struct Reference

#include <c4d_shader.h>

Public Member Functions

 Ray ()
 

Public Attributes

Vector64 p
 
Vector64 v
 
Float ior
 
Vector pp [3]
 
Vector vv [3]
 
Vector transport
 

Constructor & Destructor Documentation

◆ Ray()

Ray ( )

Default constructor.

Member Data Documentation

◆ p

[READ WRITE] The rays position.

◆ v

[READ WRITE] The rays direction vector.

◆ ior

Float ior

[READ WRITE] The current index of refraction.

◆ pp

Vector pp[3]

[READ WRITE] 3 additional ray points for MIP-Mapping.

Note
P is the pixel origin or where the ray was generated.
0/1/2 are indices into the pp and vv arrays.
The square is one screen pixel wide in X and Y direction.

◆ vv

Vector vv[3]

[READ WRITE] 3 additional ray vectors for MIP-Mapping.

Note
P is the pixel origin or where the ray was generated.
0/1/2 are indices into the pp and vv arrays.
The square is one screen pixel wide in X and Y direction.

◆ transport

Vector transport

[READ ONLY] The current ray intensity (for special shadow calculation). A ray starts with intensity 1.0.