Skip to content

Commit

Permalink
Merge pull request #100 from wethegit/feature/fixing-uv-generation-fo…
Browse files Browse the repository at this point in the history
…r-android

Fixing issue with sticker rendition on android
  • Loading branch information
liamegan authored Sep 20, 2024
2 parents 1a2f191 + 2b445ea commit 2f2126d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wethegit/preact-stickerbook",
"version": "4.0.2",
"version": "4.0.3",
"description": "Easily create collage apps that are accessible by default.",
"files": [
"dist/*"
Expand Down
3 changes: 2 additions & 1 deletion src/lib/helpers/renderSticker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ precision highp float;
in vec2 v_uv;
out vec4 color;
uniform sampler2D s_main;
uniform vec2 u_resolution;
void main() {
vec2 uv = v_uv;
vec2 uv = gl_FragCoord.xy / u_resolution;
color = texture(s_main, uv);
}`
Expand Down

0 comments on commit 2f2126d

Please sign in to comment.