Skip to content

Commit a242999

Browse files
kholbrook1303kblaschke
authored andcommitted
Resolves #903: Flip V texture coordinates in sprite rendering to match MilkDrop orientation
1 parent 47aaacb commit a242999

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
@@ -211,10 +211,10 @@ void MilkdropSprite::Draw(const Audio::FrameAudioData& audioData,
211211
float dtu = 0.5f;
212212
float dtv = 0.5f;
213213

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

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

0 commit comments

Comments
 (0)