diff options
| author | Andy Mastbaum <mastbaum@hep.upenn.edu> | 2012-04-26 11:55:55 -0400 |
|---|---|---|
| committer | tlatorre <tlatorre@uchicago.edu> | 2021-05-09 08:42:39 -0700 |
| commit | 21f9525f4dc83a7d6aac13529c92e010bb046ce9 (patch) | |
| tree | 2948944412275f992ebd4de287cb3a33df82c794 /chroma/cuda | |
| parent | ef8524f0722e2cd4a5fb676d03419ddf328c6b72 (diff) | |
| download | chroma-21f9525f4dc83a7d6aac13529c92e010bb046ce9.tar.gz chroma-21f9525f4dc83a7d6aac13529c92e010bb046ce9.tar.bz2 chroma-21f9525f4dc83a7d6aac13529c92e010bb046ce9.zip | |
add surface model documentation
Diffstat (limited to 'chroma/cuda')
| -rw-r--r-- | chroma/cuda/photon.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/chroma/cuda/photon.h b/chroma/cuda/photon.h index 6d6f1a1..26aa3e1 100644 --- a/chroma/cuda/photon.h +++ b/chroma/cuda/photon.h @@ -493,10 +493,7 @@ propagate_complex(Photon &p, State &s, curandState &rng, Surface* surface, bool return BREAK; } else if (uniform_sample < absorb + reflect) { - // specularly reflect - p.direction = rotate(s.surface_normal, incident_angle, incident_plane_normal); - p.history |= REFLECT_SPECULAR; - return CONTINUE; + return propagate_at_specular_reflector(p, s); } else { // transmit |
