clray

diff rt.cl @ 23:51f115e337c2

separated obj loading and vector class
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 13 Aug 2010 18:20:45 +0100
parents 6c44e4b1726d
children 97cfd9675310
line diff
     1.1 --- a/rt.cl	Wed Aug 11 04:30:35 2010 +0100
     1.2 +++ b/rt.cl	Fri Aug 13 18:20:45 2010 +0100
     1.3 @@ -212,8 +212,7 @@
     1.4  
     1.5  float4 reflect(float4 v, float4 n)
     1.6  {
     1.7 -	float4 res = 2.0f * dot(v, n) * n - v;
     1.8 -	return res;
     1.9 +	return 2.0f * dot(v, n) * n - v;
    1.10  }
    1.11  
    1.12  float4 transform(float4 v, global const float *xform)