Skip to content

Commit

Permalink
Merge pull request #1047 from mlimper/uv-coords-origin-spec
Browse files Browse the repository at this point in the history
Rephrased UV origin specification and added example image
  • Loading branch information
pjcozzi authored Jul 24, 2017
2 parents 36f3a00 + 7de1a3a commit 4ff578f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions specification/2.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1013,9 +1013,11 @@ The following example shows an image pointing to an external PNG image file and
```
> **Implementation Note:** When image data is provided by `uri` and `mimeType` is defined, client implementations should prefer JSON-defined MIME Type over one provided by transport layer.
First image pixel (UV coordinates origin) corresponds to the upper left corner of the image.

> **Implementation Note:** OpenGL-based implementations must flip Y axis to achieve correct texture sampling.
The origin of the UV coordinates (0, 0) corresponds to the upper left corner of a texture image.
This is illustrated in the following figure, where the respective UV coordinates are shown for all four corners of a normalized UV space:
<p align="center">
<img src="figures/texcoords.jpg" /><br/>
</p>

Any colorspace information (such as ICC profiles, intents, etc) from PNG or JPEG containers must be ignored.

Expand Down
Binary file added specification/2.0/figures/texcoords.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4ff578f

Please sign in to comment.