Fix compilation

This commit is contained in:
SirLynix 2022-08-01 19:49:27 +02:00 committed by Jérôme Leclercq
parent 27dab13484
commit 41523f8ca8
1 changed files with 2 additions and 2 deletions

View File

@ -83,10 +83,10 @@ namespace Nz
if (const auto& material = m_material->FindPass("ForwardPass"))
{
BasicMaterial mat(*material);
if (mat.HasDiffuseMap())
if (mat.HasBaseColorMap())
{
// Material should always have textures but we're better safe than sorry
if (const auto& texture = mat.GetDiffuseMap())
if (const auto& texture = mat.GetBaseColorMap())
{
Vector2f textureSize = Vector2f(Vector2ui(texture->GetSize()));
textureSize.x *= textureCoords.width;