mirror of
https://github.com/encounter/cpp3ds.git
synced 2026-03-30 11:04:22 -07:00
Remove texcoord changes in favor of texture matrix
This commit is contained in:
@@ -244,12 +244,6 @@ void Shape::updateTexCoords()
|
||||
float yratio = m_insideBounds.height > 0 ? (m_vertices[i].position.y - m_insideBounds.top) / m_insideBounds.height : 0;
|
||||
m_vertices[i].texCoords.x = m_textureRect.left + m_textureRect.width * xratio;
|
||||
m_vertices[i].texCoords.y = m_textureRect.top + m_textureRect.height * yratio;
|
||||
#ifndef EMULATION
|
||||
if (m_textureRect.width != 0)
|
||||
m_vertices[i].texCoords.x /= m_textureRect.width;
|
||||
if (m_textureRect.height != 0)
|
||||
m_vertices[i].texCoords.y /= m_textureRect.height;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user