6 #include "IndiceTools.h"
10 #include "RayTracingDevice.h"
11 #include "RayTracingMath.h"
14 void rayTracing(uchar4* ptrDevPixels, int w, int h, DomaineMath domaineMath, float t)
16 const int TID = Indice2D::tid();
17 const int NB_THREAD = Indice2D::nbThread();
20 RayTracingMath rayTracing; // TODO: prendre
23 color.w = 255; // Par défaut, l'image est opaque.
31 IndiceTools::toIJ(s, w, &pixelI, &pixelJ); // update (pixelI, pixelJ)
33 // (i,j) domaine écran.
34 // (x,y) domaine math.
35 // domaineMath.toXY(pixelI, pixelJ, &x, &y); // (i,j) -> (x,y).
37 // newtonMath.colorXY(&color, x, y);
39 ptrDevPixels[s] = color;