6 #include "IndiceTools.h"
10 #include "RayTracingDevice.h"
13 void rayTracing(uchar4* ptrDevPixels, int w, int h, float t)
15 const int TID = Indice2D::tid();
16 const int NB_THREAD = Indice2D::nbThread();
20 color.w = 255; // Par défaut, l'image est opaque.
28 IndiceTools::toIJ(s, w, &pixelI, &pixelJ); // update (pixelI, pixelJ)
30 // (i,j) domaine écran.
31 // (x,y) domaine math.
32 // domaineMath.toXY(pixelI, pixelJ, &x, &y); // (i,j) -> (x,y).
34 // newtonMath.colorXY(&color, x, y);
36 ptrDevPixels[s] = color;