Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PACANOWSKI Romain
MRF
Commits
7a1b41ff
Commit
7a1b41ff
authored
Jan 29, 2019
by
BATI Megane
Committed by
Romain Pacanowski
Feb 19, 2019
Browse files
Had forgotten to assign value when computed fresnel on several channels
parent
8d76401f
Changes
1
Hide whitespace changes
Inline
Side-by-side
mrf/materials/fresnel_functions.hpp
View file @
7a1b41ff
...
...
@@ -186,7 +186,7 @@ fresnel( RADIANCE_TYPE n1, RADIANCE_TYPE k1, RADIANCE_TYPE n2, RADIANCE_TYPE k2,
for
(
unsigned
int
channel
=
0
;
channel
<
fresnel_value
.
size
();
channel
++
)
{
fresnel
(
std
::
complex
<
float
>
(
n1
[
channel
],
k1
[
channel
]),
std
::
complex
<
float
>
(
n2
[
channel
],
k2
[
channel
]),
cos_theta_d
);
fresnel_value
[
channel
]
=
fresnel
(
std
::
complex
<
float
>
(
n1
[
channel
],
k1
[
channel
]),
std
::
complex
<
float
>
(
n2
[
channel
],
k2
[
channel
]),
cos_theta_d
);
}
return
fresnel_value
;
}
...
...
Write
Preview
Supports
Markdown
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