Fix T62930 Eevee: Wireframe input node not working with certain compiler
This commit is contained in:
parent
7021bd5273
commit
420f30efe7
Notes:
blender-bot
2023-02-14 08:45:09 +01:00
Referenced by issue #62930, Wireframe input node not working in Eevee anymore
|
@ -1204,8 +1204,8 @@ static char *code_generate_geometry(ListBase *nodes, const char *geom_code, cons
|
|||
BLI_dynstr_append(ds, "#ifdef HAIR_SHADER\n");
|
||||
BLI_dynstr_append(ds, "\tbarycentricTexCo = barycentricTexCog[vert];\n");
|
||||
BLI_dynstr_append(ds, "#else\n");
|
||||
BLI_dynstr_append(ds, "\tbarycentricTexCo.x = float((vert %% 3) == 0);\n");
|
||||
BLI_dynstr_append(ds, "\tbarycentricTexCo.y = float((vert %% 3) == 1);\n");
|
||||
BLI_dynstr_append(ds, "\tbarycentricTexCo.x = float((vert % 3) == 0);\n");
|
||||
BLI_dynstr_append(ds, "\tbarycentricTexCo.y = float((vert % 3) == 1);\n");
|
||||
BLI_dynstr_append(ds, "#endif\n");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue