Skip to content

Commit 0b17afd

Browse files
committed
Added logging a warning to case of coating over non-diffuse materials
1 parent 87acbf5 commit 0b17afd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/nbl/asset/material_compiler/CMaterialCompilerGLSLBackendCommon.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,8 @@ std::pair<instr_t, const IR::INode*> CInterpreter::processSubtree(IR* ir, const
704704
// so we ignore coating layer and process only the coated material
705705
if (!is_coated_diffuse)
706706
{
707+
os::Printer::log("Material compiler GLSL: Coating over non-diffuse materials is not supported. Ignoring coating layer!", ELL_WARNING);
708+
707709
auto retval = processSubtree(ir, coated, out_next, cache);
708710
instr = retval.first;
709711
tree = retval.second;

0 commit comments

Comments
 (0)