Revised RL_VertexColors() so that per-vertex lighting is only calculated for rendpolys that require it (i.e. skymask, shadow and dynlight are skipped). 2D distance to vertices from the viewer is now calculated here when required, if there is NOT an override. A distance override is applied to all vertices of the rendpoly, uniformly. Per poly alpha can be specified (applied uniformly to all vertices).
Revised RL_VertexColors() so that per-vertex lighting is only calculated for rendpolys that require it (i.e. skymask, shadow and dynlight are skipped). 2D distance to vertices from the viewer is now calculated here when required, if there is NOT an override. A distance override is applied to all vertices of the rendpoly, uniformly. Per poly alpha can be specified (applied uniformly to all vertices).