Data Fields
AtRay Struct Reference

Ray data structure. More...

#include <ai_ray.h>

Data Fields

AtUInt16 type
 Type of ray (AI_RAY_CAMERA, etc)
 
AtByte tid
 Thread ID.
 
AtByte level
 Recursion level (0 for camera rays)
 
AtByte diff_bounces
 Number of diffuse bounces so far.
 
AtByte gloss_bounces
 Number of glossy bounces so far.
 
AtByte refl_bounces
 Number of reflection bounces so far.
 
AtByte refr_bounces
 Number of refraction bounces so far.
 
int x
 Raster-space X coordinate.
 
int y
 Raster-space Y coordinate.
 
float sx
 Image-space X coordinate, in [-1,1)
 
float sy
 Image-space Y coordinate, in [-1,1)
 
float px
 Subpixel X coordinate in [0,1)
 
float py
 Subpixel Y coordinate in [0,1)
 
AtPoint origin
 Ray origin.
 
AtVector dir
 Unit ray direction.
 
double mindist
 Minimum useful distance from the origin.
 
double maxdist
 Maximum useful distance from the origin (volatile while ray is traced)
 
const AtShaderGlobalspsg
 Parent shader globals (last shaded)
 
void * light_source
 For shadow rays only.
 
AtBucket * bucket
 Parent bucket.
 
float weight
 Ray weight, 1.0 for clean camera rays.
 
float time
 Time at which the ray was created, in [0,1)
 
AtVector dOdx
 Partial derivative of ray origin wrt image-space X coordinate.
 
AtVector dOdy
 Partial derivative of ray origin wrt image-space Y coordinate.
 
AtVector dDdx
 Partial derivative of ray direction wrt image-space X coordinate.
 
AtVector dDdy
 Partial derivative of ray direction wrt image-space Y coordinate.
 
const char * traceset
 Trace-set for this ray.
 
bool inclusive_traceset
 Is the trace-set inclusive or exclusive?
 
AtUInt16 sindex
 Sub-pixel sample index when supersampling.
 

Detailed Description

Ray data structure.


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

© 2009-2013 Solid Angle SL · all rights reserved · www.solidangle.com