Skip to content

Commit 9c422a2

Browse files
author
devsh
committed
use named fresnels in test
1 parent d4935a1 commit 9c422a2

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

13_MaterialCompilerTest/main.cpp

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -327,28 +327,7 @@ class MaterialCompilerTest final : public application_templates::MonoDeviceAppli
327327
mul->lhs = ctH;
328328
}
329329
// other multipliers in not-left subtrees
330-
{
331-
const auto frH = forest->_new<CFrontendIR::CFresnel>();
332-
auto* fr = forest->deref(frH);
333-
fr->debugInfo = forest->_new<CNodePool::CDebugInfo>("Aluminium Fresnel");
334-
{
335-
spectral_var_t::SCreationParams<3> params = {};
336-
params.getSemantics() = spectral_var_t::Semantics::Fixed3_SRGB;
337-
params.knots.params[0].scale = 1.3404f;
338-
params.knots.params[1].scale = 0.95151f;
339-
params.knots.params[2].scale = 0.68603f;
340-
fr->orientedRealEta = forest->_new<spectral_var_t>(std::move(params));
341-
}
342-
{
343-
spectral_var_t::SCreationParams<3> params = {};
344-
params.getSemantics() = spectral_var_t::Semantics::Fixed3_SRGB;
345-
params.knots.params[0].scale = 7.3509f;
346-
params.knots.params[1].scale = 6.4542f;
347-
params.knots.params[2].scale = 5.6351f;
348-
fr->orientedImagEta = forest->_new<spectral_var_t>(std::move(params));
349-
}
350-
mul->rhs = frH;
351-
}
330+
mul->rhs = forest->createNamedFresnel("Al");
352331
layer->brdfTop = mulH;
353332

354333
// test that our bad subtree checks by swapping lhs with rhs

0 commit comments

Comments
 (0)