Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 09a089c

Browse files
committed
Change inverted coordinate explanation to be more clear in its wording (fixes #127)
1 parent 88fcb49 commit 09a089c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

08_Loading_models.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,7 @@ following:
224224
225225
![](/images/inverted_texture_coordinates.png)
226226
227-
Great, the geometry looks correct, but what's going on with the texture? The
228-
problem is that the origin of texture coordinates in Vulkan is the top-left
229-
corner, whereas the OBJ format assumes the bottom-left corner. Solve this by
227+
Great, the geometry looks correct, but what's going on with the texture? The OBJ format assumes a coordinate system where a vertical coordinate of `0` means the bottom of the image, however we've uploaded our image into Vulkan in a top to bottom orientation where `0` means the top of the image. Solve this by
230228
flipping the vertical component of the texture coordinates:
231229
232230
```c++

0 commit comments

Comments
 (0)