When using VM_CL_R_PolygonEnd to draw a polygon with no texture and only white ('1 1 1') vertices, the result can have the wrong alpha (and maybe wrong color too, hard to tell).
This issue doesn't occur when using VM_drawfill.
E.g. when passing alpha 1, the polygon can be drawn with <1 alpha, and from testing (used DRAWFLAG_NORMAL, on map afterslime in Xonotic git build) the alpha was strangely dependent on the view origin and direction. In this case, removing fog happened to fix the issue, so that's likely related.
Setting hascolor = true; (or otherwise doing materialflags |= MATERIALFLAG_VERTEXCOLOR;) seems to fix it in this case.
When using
VM_CL_R_PolygonEndto draw a polygon with no texture and only white ('1 1 1') vertices, the result can have the wrong alpha (and maybe wrong color too, hard to tell).This issue doesn't occur when using
VM_drawfill.E.g. when passing alpha 1, the polygon can be drawn with <1 alpha, and from testing (used
DRAWFLAG_NORMAL, on map afterslime in Xonotic git build) the alpha was strangely dependent on the view origin and direction. In this case, removing fog happened to fix the issue, so that's likely related.Setting
hascolor = true;(or otherwise doingmaterialflags |= MATERIALFLAG_VERTEXCOLOR;) seems to fix it in this case.