Skip to content

Commit

Permalink
Updated SimpleTexture example
Browse files Browse the repository at this point in the history
When using the "default unit square" texture coordinates,
the texture seemed to be flipped vertically. Now, the
texture coordinates are flipped vertically. This is also
indicated in the actual texture image and explicitly
pointed out in the README.
  • Loading branch information
javagl committed Jan 28, 2017
1 parent 9ce6e5c commit 3a2dbf4
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 4 deletions.
9 changes: 8 additions & 1 deletion SimpleTexture/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
# SimpleOpacity
# SimpleTexture

## Screenshot

![screenshot](screenshot/screenshot.png)


Note that the texture image also shows the *texture coordinates*:

- The *upper left* point of the texture image has the texture coordinates `(0,0)`
- The *lower right* point of the texture image has the texture coordinates `(1,1)`


## License Information

Public domain ([CC0](https://creativecommons.org/publicdomain/zero/1.0/))
Expand Down
4 changes: 2 additions & 2 deletions SimpleTexture/glTF-Embedded-buffer/SimpleTexture.gltf
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
},
"shininessParameter": {
"type": 5126,
"value": [ 40.0 ]
"value": [ 80.0 ]
}
},
"states": {
Expand Down Expand Up @@ -145,7 +145,7 @@

"buffers" : {
"geometryBuffer" : {
"uri" : "data:application/octet-stream;base64,AAABAAIAAQADAAIAAAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAgD8AAAAAAACAPwAAgD8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AACAPwAAgD8=",
"uri" : "data:application/octet-stream;base64,AAABAAIAAQADAAIAAAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAgD8AAAAAAACAPwAAgD8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAgD8AAIA/AACAPwAAAAAAAAAAAACAPwAAAAA=",
"byteLength" : 140
}
},
Expand Down
Binary file modified SimpleTexture/glTF-Embedded-buffer/testTexture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion SimpleTexture/glTF/SimpleTexture.gltf
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
},
"shininessParameter": {
"type": 5126,
"value": [ 40.0 ]
"value": [ 80.0 ]
}
},
"states": {
Expand Down
Binary file modified SimpleTexture/glTF/square.bin
Binary file not shown.
Binary file modified SimpleTexture/glTF/testTexture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified SimpleTexture/screenshot/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified SimpleTexture/screenshot/square.png
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 3a2dbf4

Please sign in to comment.