Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Courses
Scotty3D
Commits
a5238a9b
Commit
a5238a9b
authored
Oct 25, 2020
by
TheNumbat
Browse files
fix debug normal default
parent
451decb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/student/pathtracer.cpp
View file @
a5238a9b
...
...
@@ -56,7 +56,7 @@ Spectrum Pathtracer::trace_ray(const Ray &ray) {
// code sets radiance_out to (0.5,0.5,0.5) so that you can test your geometry
// queries before you implement path tracing.
Spectrum
radiance_out
=
debug_data
.
normal_colors
?
Spectrum
(
0.5
f
)
:
Spectrum
::
direction
(
hit
.
normal
);
debug_data
.
normal_colors
?
Spectrum
::
direction
(
hit
.
normal
)
:
Spectrum
(
0.5
f
)
;
{
auto
sample_light
=
[
&
](
const
auto
&
light
)
{
// If the light is discrete (e.g. a point light), then we only need
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment