Skip to content

Commit

Permalink
Unflip baboon and the poor doggo
Browse files Browse the repository at this point in the history
The image/video have both been rendered horizontally flipped.
  • Loading branch information
Prinzhorn committed May 4, 2018
1 parent a8c5c95 commit 902c4fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/texture.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ regl({
attribute vec2 position;
varying vec2 uv;
void main () {
uv = position;
uv = vec2(1.0 - position.x, position.y);
gl_Position = vec4(1.0 - 2.0 * position, 0, 1);
}`,

Expand Down
2 changes: 1 addition & 1 deletion example/video.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const drawDoggie = regl({
attribute vec2 position;
varying vec2 uv;
void main () {
uv = position;
uv = vec2(1.0 - position.x, position.y);
gl_Position = vec4(1.0 - 2.0 * position, 0, 1);
}`,

Expand Down

0 comments on commit 902c4fa

Please sign in to comment.