Shader: Add Discard node

This commit is contained in:
Jérôme Leclercq
2020-12-30 20:05:16 +01:00
parent a1c15a8c16
commit ed72d668d9
22 changed files with 162 additions and 0 deletions

View File

@@ -519,6 +519,11 @@ namespace Nz
AppendLine(";");
}
void GlslWriter::Visit(ShaderNodes::Discard& /*node*/)
{
Append("discard;");
}
void GlslWriter::Visit(ShaderNodes::ExpressionStatement& node)
{
Visit(node.expression);