Skip to content

Commit 9b59825

Browse files
authored
Merge pull request #64 from MennoVeerman/develop
fix direction sampling for atmospheric photons
2 parents 25fb542 + 8e7bd84 commit 9b59825

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src_kernels_cuda_rt/raytracer_kernels_lw.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ namespace
108108
photon.position.y = (j + rng()) * grid_d.y;
109109
photon.position.z = (k + rng()) * grid_d.z;
110110

111-
mu = sqrt(rng())*Float(2.) - Float(1.);
111+
mu = rng()*Float(2.) - Float(1.);
112112
azi = Float(2.*M_PI)*rng();
113113

114114
const int ijk = ij + k*grid_cells.x*grid_cells.y;

0 commit comments

Comments
 (0)