Provides Canvas2D for sprite rendering.

Differential Revision: https://code.wildfiregames.com/D4029
This was SVN commit r25591.
This commit is contained in:
vladislavbelov
2021-05-29 19:47:36 +00:00
parent 283f524fcf
commit 57dde8d082
31 changed files with 125 additions and 117 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ void CCanvas2D::DrawRect(const CRect& rect, const CColor& color)
tech->BeginPass();
CShaderProgramPtr shader = tech->GetShader();
shader->BindTexture(str_tex, g_Renderer.GetTextureManager().GetWhiteTexture());
shader->BindTexture(str_tex, g_Renderer.GetTextureManager().GetTransparentTexture());
shader->Uniform(str_transform, GetDefaultGuiMatrix());
shader->Uniform(str_colorAdd, color);
shader->Uniform(str_colorMul, CColor(0.0f, 0.0f, 0.0f, 0.0f));