rayzor

diff 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 diff
     1.1 --- a/src/raytrace.h	Tue Apr 15 20:52:05 2014 +0300
     1.2 +++ b/src/raytrace.h	Fri May 02 14:32:58 2014 +0300
     1.3 @@ -1,20 +1,20 @@
     1.4 -#ifndef RAYTRACE_H_
     1.5 -#define RAYTRACE_H_
     1.6 -
     1.7 -#include "vmath.h"
     1.8 -#include "vmathray.h"
     1.9 -
    1.10 -class Object;
    1.11 -
    1.12 -struct RayHit {
    1.13 -	Ray ray;			// the ray in world coordinates
    1.14 -	Ray lray;			// the local coordinate system ray
    1.15 -	float dist;			// parametric distance along the ray
    1.16 -	const Object *obj;	// pointer to the object that has been hit
    1.17 -	const void *subobj;	// object-specific subobject pointer (can be null).
    1.18 -};
    1.19 -
    1.20 -Vector3 ray_trace(const Ray &ray, int iter = 0);
    1.21 -Vector3 shade(const RayHit &hit, int iter);
    1.22 -
    1.23 -#endif	// RAYTRACE_H_
    1.24 +#ifndef RAYTRACE_H_
    1.25 +#define RAYTRACE_H_
    1.26 +
    1.27 +#include "vmath.h"
    1.28 +#include "vmathray.h"
    1.29 +
    1.30 +class Object;
    1.31 +
    1.32 +struct RayHit {
    1.33 +	Ray ray;			// the ray in world coordinates
    1.34 +	Ray lray;			// the local coordinate system ray
    1.35 +	float dist;			// parametric distance along the ray
    1.36 +	const Object *obj;	// pointer to the object that has been hit
    1.37 +	const void *subobj;	// object-specific subobject pointer (can be null).
    1.38 +};
    1.39 +
    1.40 +Vector3 ray_trace(const Ray &ray, int iter = 0);
    1.41 +Vector3 shade(const RayHit &hit, int iter);
    1.42 +
    1.43 +#endif	// RAYTRACE_H_