rayzor

view src/raytrace.h @ 22:5380ff64e83f

minor changes from dos, and line endings cleanup
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 02 May 2014 14:32:58 +0300
parents 79609d482762
children
line source
1 #ifndef RAYTRACE_H_
2 #define RAYTRACE_H_
4 #include "vmath.h"
5 #include "vmathray.h"
7 class Object;
9 struct RayHit {
10 Ray ray; // the ray in world coordinates
11 Ray lray; // the local coordinate system ray
12 float dist; // parametric distance along the ray
13 const Object *obj; // pointer to the object that has been hit
14 const void *subobj; // object-specific subobject pointer (can be null).
15 };
17 Vector3 ray_trace(const Ray &ray, int iter = 0);
18 Vector3 shade(const RayHit &hit, int iter);
20 #endif // RAYTRACE_H_