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->GetSortIndex(), m_colorOverlay);
|
||||
|
||||
if (m_shouldDrawOutline)
|
||||
{
|
||||
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->GetSortIndex(), m_outlineColor);
|
||||
}
|
||||
//if (m_shouldDrawOutline)
|
||||
//{
|
||||
// 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->GetSortIndex(), m_outlineColor);
|
||||
//}
|
||||
}
|
||||
} // namespace ia::iae
|
||||
@ -34,8 +34,7 @@ namespace ia::iae
|
||||
.address_mode_u = SDL_GPU_SAMPLERADDRESSMODE_REPEAT,
|
||||
.address_mode_v = SDL_GPU_SAMPLERADDRESSMODE_REPEAT,
|
||||
.address_mode_w = SDL_GPU_SAMPLERADDRESSMODE_REPEAT,
|
||||
.max_anisotropy = 1.0f,
|
||||
.enable_anisotropy = true};
|
||||
.enable_anisotropy = false};
|
||||
g_defaultSampler = SDL_CreateGPUSampler(g_gpuDevice, &createInfo);
|
||||
}
|
||||
|
||||
|
||||
@ -144,7 +144,7 @@ namespace ia::iae
|
||||
|
||||
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.y = 0;
|
||||
|
||||
@ -24,10 +24,10 @@ namespace ia::iae
|
||||
{
|
||||
public:
|
||||
~Scene();
|
||||
|
||||
|
||||
VIRTUAL VOID OnActivate();
|
||||
VIRTUAL VOID OnDeactivate();
|
||||
|
||||
|
||||
VIRTUAL VOID Draw();
|
||||
VIRTUAL VOID Update();
|
||||
|
||||
@ -46,8 +46,14 @@ namespace ia::iae
|
||||
return m_ySortingEnabled;
|
||||
}
|
||||
|
||||
glm::vec4 &Bounds()
|
||||
{
|
||||
return m_bounds;
|
||||
}
|
||||
|
||||
private:
|
||||
BOOL m_ySortingEnabled{false};
|
||||
Vector<RefPtr<Node>> m_nodes;
|
||||
glm::vec4 m_bounds;
|
||||
};
|
||||
} // namespace ia::iae
|
||||
Reference in New Issue
Block a user