clray

diff rt.cl @ 7:575383f3a239

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 23 Jul 2010 01:22:03 +0100
parents 9f0ddb701882
children deaf85acf6af
line diff
     1.1 --- a/rt.cl	Tue Jul 20 20:02:41 2010 +0100
     1.2 +++ b/rt.cl	Fri Jul 23 01:22:03 2010 +0100
     1.3 @@ -25,6 +25,10 @@
     1.4  	global const struct Sphere *obj;
     1.5  };
     1.6  
     1.7 +struct Matrix4x4 {
     1.8 +	float m[16];
     1.9 +};
    1.10 +
    1.11  #define EPSILON 1e-6
    1.12  
    1.13  float4 shade(struct Ray ray, struct SurfPoint sp,
    1.14 @@ -37,7 +41,8 @@
    1.15  		global const struct RendInfo *rinf,
    1.16  		global const struct Sphere *sphlist,
    1.17  		global const struct Light *lights,
    1.18 -		global const struct Ray *primrays)
    1.19 +		global const struct Ray *primrays,
    1.20 +		global const struct Matrix4x4 xform)
    1.21  {
    1.22  	int idx = get_global_id(0);
    1.23