Jump to content

Renderer resolution affects texture sizes in Canvas mode


soylomass
 Share

Recommended Posts

I'm using Pixi 5 legacy and I notice that in Canvas mode, resolution affects texture sizes, see the examples:

I'm making a "center light" using 4 square sprites and a center radial gradient sprite. I make it this way so the sizes can be dynamic.

Screenshot_7.png.73caaa2ccf73e5661bef34b6170ca9cd.png

Both the green sprite and the red one have the same height. In this case I'm using a 8x8 white, tinted texture for the red sprite.

 

If I use a base 10 (10x10, 100x100) texture, the effect almost disappears, scaling correctly:

Screenshot_8.png.ae63200377bb5237884d8f0a7fbd5f07.png

 

Also, if I use 1x1 texture,  the sprite becomes invisible with a resolution other than 1 (at least smaller than 1).

 

Is this normal? How can I avoid it?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...