adding anyhit, doesnt work though

This commit is contained in:
Dynamitos
2025-01-30 23:25:41 +01:00
parent 44b147084b
commit 89570ff792
19 changed files with 136 additions and 70 deletions
+1
View File
@@ -172,6 +172,7 @@ void Material::compile() {
for (const auto& [name, exp] : brdf.variables) {
codeStream << "\t\tresult." << name << " = " << varState[exp] << ";" << std::endl;
}
codeStream << "\t\tresult.transformNormal(input.tangentToWorld);" << std::endl;
codeStream << "\t\treturn result;\n";
codeStream << "\t}\n";
codeStream << "};\n";