equal
deleted
inserted
replaced
9 #include <pthread.h> |
9 #include <pthread.h> |
10 #endif |
10 #endif |
11 |
11 |
12 #include <stdio.h> |
12 #include <stdio.h> |
13 #include <malloc.h> |
13 #include <malloc.h> |
14 #include <float.h> |
14 #include "common.h" |
15 #include "raytracer.h" |
15 #include "raytracer.h" |
16 |
16 |
17 // Hammersley spherical point distribution |
17 // Hammersley spherical point distribution |
18 // http://www.cse.cuhk.edu.hk/~ttwong/papers/udpoint/udpoints.html |
18 // http://www.cse.cuhk.edu.hk/~ttwong/papers/udpoint/udpoints.html |
19 Vector3 Raytracer::SphereDistribute(int i, int n, float extent, Vector3 &normal) |
19 Vector3 Raytracer::SphereDistribute(int i, int n, float extent, Vector3 &normal) |