Skip to content

Commit 890b78a

Browse files
kholbrook1303kblaschke
authored andcommitted
Resolves #903: Flip V texture coordinates in sprite rendering to match MilkDrop orientation
1 parent 7653827 commit 890b78a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libprojectM/UserSprites/MilkdropSprite.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,10 @@ void MilkdropSprite::Draw(const Audio::FrameAudioData& audioData,
210210
float dtu = 0.5f;
211211
float dtv = 0.5f;
212212

213-
m_mesh.UVs().Set({{-dtu, -dtv},
214-
{dtu, -dtv},
215-
{-dtu, dtv},
216-
{dtu, dtv}});
213+
m_mesh.UVs().Set({{-dtu, dtv},
214+
{dtu, dtv},
215+
{-dtu, -dtv},
216+
{dtu, -dtv}});
217217

218218
for (auto& uv : m_mesh.UVs().Get())
219219
{

0 commit comments

Comments
 (0)