The Canvas::DrawTile method halves the color my texture:
The left part of this image is a pure red texture (255,0,0), and when I render the canvas texture after using DrawTile, it is now 127. The right part are boxes drawn with DrawItem in the same canvas, and they are displayed correctly.
In case it matter I use UCanvasRenderTarget2D.
Why is DrawTile transforming the color of my texture?
FCanvasTileItem WhiteBox = FCanvasTileItem(FVector2D(0.0f, 0.0f), GWhiteTexture, FVector2D(Width, Height), FLinearColor(1.0f, 1.0f, 1.0f));
Canvas->DrawItem(WhiteBox);
FCanvasTileItem RedBox = FCanvasTileItem(FVector2D(Width * 0.1f, Height * 0.1f), GWhiteTexture, FVector2D(Width * 0.8f, Height * 0.8f), FLinearColor(1.0f, 0.0f, 0.0f));
Canvas->DrawItem(RedBox);
FCanvasTileItem GreenBox = FCanvasTileItem(FVector2D(Width * 0.2f, Height * 0.2f), GWhiteTexture, FVector2D(Width * 0.6f, Height * 0.6f), FLinearColor(0.0f, 1.0f, 0.0f));
Canvas->DrawItem(GreenBox);
FCanvasTileItem BlueBox = FCanvasTileItem(FVector2D(Width * 0.3f, Height * 0.3f), GWhiteTexture, FVector2D(Width * 0.4f, Height * 0.4f), FLinearColor(0.0f, 0.0f, 1.0f));
Canvas->DrawItem(BlueBox);
Canvas->DrawTile(Texture, 0, 0, SurfaceWidth / 2.0, SurfaceHeight, 0, 0, Texture->GetSurfaceWidth(), Texture->GetSurfaceHeight(), BLEND_Translucent);