X-Git-Url: http://git.euphorik.ch/?p=GPU.git;a=blobdiff_plain;f=WCudaMSE%2FStudent_Cuda_Image%2Fsrc%2Fcpp%2Fcore%2F04_RayTracing%2Fmoo%2Fhost%2FRayTracing.cu;h=162382034b340c06515271d744bc37ce9375ec91;hp=503459473dcfad67948bc7107f7aa6f5734e642b;hb=2fd5d915e8a9de4d957d6031d2d68088784eac3c;hpb=f2c6a4fc79746e2d5c6678699bd2ca93ffc49bcc diff --git a/WCudaMSE/Student_Cuda_Image/src/cpp/core/04_RayTracing/moo/host/RayTracing.cu b/WCudaMSE/Student_Cuda_Image/src/cpp/core/04_RayTracing/moo/host/RayTracing.cu index 5034594..1623820 100644 --- a/WCudaMSE/Student_Cuda_Image/src/cpp/core/04_RayTracing/moo/host/RayTracing.cu +++ b/WCudaMSE/Student_Cuda_Image/src/cpp/core/04_RayTracing/moo/host/RayTracing.cu @@ -32,12 +32,12 @@ void RayTracing::runGPU(uchar4* ptrDevPixels) { rayTracing<<>>(ptrDevPixels, this->w, this->h, this->t); - HANDLE_ERROR(cudaDeviceSynchronize()); // Pour flusher les 'printf' (pour le DEBUG). + // HANDLE_ERROR(cudaDeviceSynchronize()); // Pour flusher les 'printf' (pour le DEBUG). } void RayTracing::animationStep() { - this->t += 0.1; // TODO + this->t += 0.1; // TODO. } int RayTracing::getW() @@ -69,7 +69,7 @@ Sphere* RayTracing::createSpheres(int n) { spheres[i].setR(float(this->alea.uniformeAB(20, this->w / 10 - 1))); - cpu::float3 centre + float3 centre { float(this->alea.uniformeAB(double(bord), double(this->w - bord))), float(this->alea.uniformeAB(double(bord), double(this->h - bord))),