Fixes
This commit is contained in:
@ -44,11 +44,11 @@ namespace ia::iae
|
|||||||
m_node->DrawnSize(), m_node->GetRotation() + m_rotationOffset, m_node->LayerIndex(),
|
m_node->DrawnSize(), m_node->GetRotation() + m_rotationOffset, m_node->LayerIndex(),
|
||||||
m_node->GetSortIndex(), m_colorOverlay);
|
m_node->GetSortIndex(), m_colorOverlay);
|
||||||
|
|
||||||
if (m_shouldDrawOutline)
|
//if (m_shouldDrawOutline)
|
||||||
{
|
//{
|
||||||
Renderer::Draw(Renderer::GetMesh_Quad(), g_whiteStrokeTexture.GetHandle(), m_node->GetPosition() + m_positionOffset,
|
// Renderer::Draw(Renderer::GetMesh_Quad(), g_whiteStrokeTexture.GetHandle(), m_node->GetPosition() + m_positionOffset,
|
||||||
m_node->DrawnSize(), m_node->GetRotation() + m_rotationOffset, Renderer::MAX_LAYER_INDEX,
|
// m_node->DrawnSize(), m_node->GetRotation() + m_rotationOffset, Renderer::MAX_LAYER_INDEX,
|
||||||
m_node->GetSortIndex(), m_outlineColor);
|
// m_node->GetSortIndex(), m_outlineColor);
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
} // namespace ia::iae
|
} // namespace ia::iae
|
||||||
@ -34,8 +34,7 @@ namespace ia::iae
|
|||||||
.address_mode_u = SDL_GPU_SAMPLERADDRESSMODE_REPEAT,
|
.address_mode_u = SDL_GPU_SAMPLERADDRESSMODE_REPEAT,
|
||||||
.address_mode_v = SDL_GPU_SAMPLERADDRESSMODE_REPEAT,
|
.address_mode_v = SDL_GPU_SAMPLERADDRESSMODE_REPEAT,
|
||||||
.address_mode_w = SDL_GPU_SAMPLERADDRESSMODE_REPEAT,
|
.address_mode_w = SDL_GPU_SAMPLERADDRESSMODE_REPEAT,
|
||||||
.max_anisotropy = 1.0f,
|
.enable_anisotropy = false};
|
||||||
.enable_anisotropy = true};
|
|
||||||
g_defaultSampler = SDL_CreateGPUSampler(g_gpuDevice, &createInfo);
|
g_defaultSampler = SDL_CreateGPUSampler(g_gpuDevice, &createInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -144,7 +144,7 @@ namespace ia::iae
|
|||||||
|
|
||||||
g_pipelineUnlitMesh = Pipeline_UnlitMesh::Create();
|
g_pipelineUnlitMesh = Pipeline_UnlitMesh::Create();
|
||||||
|
|
||||||
matProjection = glm::orthoLH(0.0f, (FLOAT32) s_width, (FLOAT32) s_height, 0.0f, -1000.0f, 1000.0f);
|
matProjection = glm::orthoLH(0.0f, (FLOAT32) s_width, (FLOAT32) s_height, 0.0f, -2097152.0f, 2097152.0f);
|
||||||
|
|
||||||
g_defaultScissor.x = 0;
|
g_defaultScissor.x = 0;
|
||||||
g_defaultScissor.y = 0;
|
g_defaultScissor.y = 0;
|
||||||
|
|||||||
@ -46,8 +46,14 @@ namespace ia::iae
|
|||||||
return m_ySortingEnabled;
|
return m_ySortingEnabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
glm::vec4 &Bounds()
|
||||||
|
{
|
||||||
|
return m_bounds;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
BOOL m_ySortingEnabled{false};
|
BOOL m_ySortingEnabled{false};
|
||||||
Vector<RefPtr<Node>> m_nodes;
|
Vector<RefPtr<Node>> m_nodes;
|
||||||
|
glm::vec4 m_bounds;
|
||||||
};
|
};
|
||||||
} // namespace ia::iae
|
} // namespace ia::iae
|
||||||
Reference in New Issue
Block a user