Fix incorrect View Size for 2d character font material

This commit is contained in:
Wojtek Figat
2024-04-17 16:41:19 +02:00
parent 16554fe742
commit 261faad93e

View File

@@ -988,7 +988,7 @@ void DrawBatch(int32 startIndex, int32 count)
MaterialBase::BindParameters bindParams(Context, *(RenderContext*)nullptr);
Render2D::CustomData customData;
customData.ViewProjection = ViewProjection;
customData.ViewSize = Float2(d.AsMaterial.Width, d.AsMaterial.Height);
customData.ViewSize = Float2::One;
bindParams.CustomData = &customData;
material->Bind(bindParams);