src/raytracer.cc
branchpyrit
changeset 14 fc18ac4833f2
parent 12 f4fcabf05785
child 15 a0a3e334744f
equal deleted inserted replaced
13:fbd1d2f7d94e 14:fc18ac4833f2
     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)