if (px >= 0 && py >= 0 && px < BEAMWIDTH && py < BEAMHEIGHT)
image[py*BEAMWIDTH+px] += 16;
}
-
+
for (py = 0;py < BEAMHEIGHT;py++)
{
for (px = 0;px < BEAMWIDTH;px++)
pixels[(py*BEAMWIDTH+px)*4+3] = 255;
}
}
-
+
Image_WriteTGABGRA(va("lightningbeam%i.tga", imagenumber), BEAMWIDTH, BEAMHEIGHT, pixels);
}
GL_DepthRange(0, 1);
GL_PolygonOffset(r_refdef.polygonfactor, r_refdef.polygonoffset);
GL_DepthTest(true);
+ GL_CullFace(GL_NONE);
if (r_lightningbeam_qmbtexture.integer && r_lightningbeamqmbtexture == NULL)
r_lightningbeams_setupqmbtexture();
if (!r_lightningbeam_qmbtexture.integer && r_lightningbeamtexture == NULL)