Merge RGBA sprite rendering into SpriteRenderer.
Renderer.RgbaSpriteRenderer is kept as a thin wrapper to maintain compatibility with consumer code.
This commit is contained in:
@@ -36,7 +36,7 @@ namespace OpenRA.Graphics
|
||||
float sb = 0;
|
||||
|
||||
// See shp.vert for documentation on the channel attribute format
|
||||
var attribC = ((byte)r.Channel) << 1 | 0x01;
|
||||
var attribC = r.Channel == TextureChannel.RGBA ? 0x02 : ((byte)r.Channel) << 1 | 0x01;
|
||||
|
||||
var ss = r as SpriteWithSecondaryData;
|
||||
if (ss != null)
|
||||
|
||||
Reference in New Issue
Block a user