Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.

Textures are flipped by TextureLoader #26

Open
OLEGSHA opened this issue Jan 12, 2022 · 0 comments
Open

Textures are flipped by TextureLoader #26

OLEGSHA opened this issue Jan 12, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@OLEGSHA
Copy link
Owner

OLEGSHA commented Jan 12, 2022

When textures are loaded, they are stored in memory vertically flipped. TextureLoader explicitly flips the images. To resolve this issue, not only TextureLoader has to be modified, but also most of the UV maps in the game (primitives and entity models).

This is a problem both because the UV maps are counter-intuitive to experienced developers and because most libraries, specifically, GLFW, expect a certain memory layout for image data.

@OLEGSHA OLEGSHA added the bug Something isn't working label Jan 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant