Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
alta
alta
Commits
83c37875
Commit
83c37875
authored
Oct 23, 2014
by
Laurent Belcour
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
By default 0 filling of the data in MERL.
parent
dfb95e21
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
sources/plugins/data_merl/data.cpp
sources/plugins/data_merl/data.cpp
+2
-0
No files found.
sources/plugins/data_merl/data.cpp
View file @
83c37875
...
...
@@ -23,6 +23,7 @@
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <algorithm>
#define BRDF_SAMPLING_RES_THETA_H 90
#define BRDF_SAMPLING_RES_THETA_D 90
...
...
@@ -39,6 +40,7 @@ data_merl::data_merl()
{
const
int
n
=
BRDF_SAMPLING_RES_PHI_D
/
2
*
BRDF_SAMPLING_RES_THETA_D
*
BRDF_SAMPLING_RES_THETA_H
;
brdf
=
(
double
*
)
malloc
(
sizeof
(
double
)
*
3
*
n
);
std
::
fill
(
brdf
,
brdf
+
3
*
n
,
0.0
);
// Set the input and output parametrization
_in_param
=
params
::
RUSIN_TH_TD_PD
;
...
...
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