Skip to content

Commit

Permalink
Merge pull request #433 from est77/master
Browse files Browse the repository at this point in the history
Fixed broken OSL build.
  • Loading branch information
est77 committed Apr 16, 2014
2 parents 6361e2a + 2696153 commit 5063d0e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
8 changes: 0 additions & 8 deletions src/appleseed/renderer/kernel/shading/closures.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,9 @@ void CompositeClosure::process_closure_tree(
AshikminBRDFInputValues values;

linear_rgb_reflectance_to_spectrum(Color3f(p->Cd), values.m_rd);
values.m_rd_alpha.set(1.0f);
values.m_rd_multiplier = p->kd;

linear_rgb_reflectance_to_spectrum(Color3f(p->Cs), values.m_rg);
values.m_rg_alpha.set(1.0f);
values.m_rg_multiplier = p->ks;
values.m_fr_multiplier = 1.0;
values.m_nu = p->nu;
Expand Down Expand Up @@ -231,7 +229,6 @@ void CompositeClosure::process_closure_tree(

LambertianBRDFInputValues values;
values.m_reflectance.set(1.0f);
values.m_reflectance_alpha.set(1.0f);
values.m_reflectance_multiplier = 1.0;

add_closure<LambertianBRDFInputValues>(
Expand All @@ -252,7 +249,6 @@ void CompositeClosure::process_closure_tree(

MicrofacetBRDFInputValues values;
values.m_reflectance.set(1.0f);
values.m_reflectance_alpha.set(1.0f);
values.m_reflectance_multiplier = 1.0;
values.m_glossiness = p->glossiness;
values.m_glossiness_multiplier = 1.0;
Expand All @@ -273,7 +269,6 @@ void CompositeClosure::process_closure_tree(

OrenNayarBRDFInputValues values;
values.m_reflectance.set(1.0f);
values.m_reflectance_alpha.set(1.0f);
values.m_reflectance_multiplier = 1.0;
values.m_roughness = p->roughness;

Expand All @@ -292,7 +287,6 @@ void CompositeClosure::process_closure_tree(

SpecularBRDFInputValues values;
values.m_reflectance.set(1.0f);
values.m_reflectance_alpha.set(1.0f);
values.m_reflectance_multiplier = 1.0;

add_closure<SpecularBRDFInputValues>(
Expand All @@ -312,7 +306,6 @@ void CompositeClosure::process_closure_tree(
values.m_reflectance.set(1.0f);
values.m_from_ior = p->from_ior;
values.m_to_ior = p->to_ior;
values.m_reflectance_alpha = Alpha(1.0);
values.m_reflectance_multiplier = 1.0;

add_closure<SpecularBTDFInputValues>(
Expand All @@ -330,7 +323,6 @@ void CompositeClosure::process_closure_tree(

DiffuseBTDFInputValues values;
values.m_transmittance.set(1.0f);
values.m_transmittance_alpha = Alpha(1.0);
values.m_transmittance_multiplier = 1.0;

add_closure<DiffuseBTDFInputValues>(
Expand Down
1 change: 0 additions & 1 deletion src/appleseed/renderer/modeling/bsdf/orennayarbrdf.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ namespace renderer
DECLARE_INPUT_VALUES(OrenNayarBRDFInputValues)
{
Spectrum m_reflectance; // diffuse reflectance (albedo, technically)
Alpha m_reflectance_alpha; // unused
double m_reflectance_multiplier;
double m_roughness;
};
Expand Down

0 comments on commit 5063d0e

Please sign in to comment.