Handle gl_VertexID built-in
This commit is contained in:
parent
120354ffa8
commit
240d80407f
|
@ -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';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue