OpenGL2: Store vertex colors and hdr lightmaps/lightgrid as RGBA16.

This commit is contained in:
SmileTheory committed 2016-10-11 03:28:20 -07:00
1 parent 239f539702
commit aa79738c50
15 files changed
+240 -184

No files matched your search

+3 -1
View File
@@ -384,6 +384,7 @@ static void AutospriteDeform( void ) {
}
for ( i = 0 ; i < oldVerts ; i+=4 ) {
vec4_t color;
// find the midpoint
xyz = tess.xyz[i];
@@ -414,7 +415,8 @@ static void AutospriteDeform( void ) {
VectorScale(up, axisLength, up);
}
RB_AddQuadStamp( mid, left, up, tess.vertexColors[i] );
VectorScale4(tess.color[i], 1.0f / 65535.0f, color);
RB_AddQuadStamp( mid, left, up, color );
}
}