Handle gl_VertexID built-in

This commit is contained in:
luboslenco 2019-02-28 23:15:48 +01:00
parent 120354ffa8
commit 240d80407f

View file

@ -325,6 +325,11 @@ class CyclesShader {
s += '$a$in_ext : TEXCOORD$index;\n';
index++;
}
// Built-ins
if (shader_type == 'vert' && main.indexOf("gl_VertexID") >= 0) {
s += 'uint gl_VertexID : SV_VertexID;\n';
ins.push('uint gl_VertexID');
}
s += '};\n';
}