Fix incorrect View Size for 2d character font material
This commit is contained in:
@@ -988,7 +988,7 @@ void DrawBatch(int32 startIndex, int32 count)
|
|||||||
MaterialBase::BindParameters bindParams(Context, *(RenderContext*)nullptr);
|
MaterialBase::BindParameters bindParams(Context, *(RenderContext*)nullptr);
|
||||||
Render2D::CustomData customData;
|
Render2D::CustomData customData;
|
||||||
customData.ViewProjection = ViewProjection;
|
customData.ViewProjection = ViewProjection;
|
||||||
customData.ViewSize = Float2(d.AsMaterial.Width, d.AsMaterial.Height);
|
customData.ViewSize = Float2::One;
|
||||||
bindParams.CustomData = &customData;
|
bindParams.CustomData = &customData;
|
||||||
material->Bind(bindParams);
|
material->Bind(bindParams);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user