Trying to get metal backend to run

This commit is contained in:
Dynamitos
2025-04-12 17:40:14 +02:00
parent 32ad82dbd2
commit 3cee2ae9ab
24 changed files with 64 additions and 69 deletions
+3 -1
View File
@@ -170,7 +170,9 @@ void Material::compile() {
for (const auto& expr : codeExpressions) {
codeStream << "\t\t" << expr->evaluate(varState);
}
for (const auto& [name, exp] : brdf.variables) {
//for (const auto& [name, exp] : brdf.variables) {
for(auto it = brdf.variables.begin(); it != brdf.variables.end(); ++it){
auto [name, exp] = *it;
codeStream << "\t\tresult." << name << " = " << varState[exp] << ";" << std::endl;
}
codeStream << "\t\tresult.transformNormal(input.tangentToWorld);" << std::endl;