Shader: backport struct fix from phong-lighting
This commit is contained in:
@@ -202,7 +202,7 @@ namespace Nz::ShaderAst
|
||||
else
|
||||
accessIdentifierPtr = static_cast<AccessIdentifierExpression*>(indexedExpr.get());
|
||||
|
||||
accessIdentifierPtr->identifiers.push_back(s->members[fieldIndex].name);
|
||||
accessIdentifierPtr->identifiers.push_back(fieldPtr->name);
|
||||
accessIdentifierPtr->cachedExpressionType = ResolveType(fieldPtr->type);
|
||||
}
|
||||
else
|
||||
|
||||
@@ -1118,6 +1118,9 @@ namespace Nz
|
||||
bool first = true;
|
||||
for (const auto& member : node.description.members)
|
||||
{
|
||||
if (member.cond.HasValue() && !member.cond.GetResultingValue())
|
||||
continue;
|
||||
|
||||
if (!first)
|
||||
AppendLine();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user