Jump to content

Particles Demo? - Also Do They Only Work In WebGL?


JeZxLee
 Share

Recommended Posts

I think I will cook up something simple.
Just want 1 star sprite to fade out/rotate into the foreground on mouse click/touch.

I noticed during development that alpha transparency seems to be quite expensive?
Why is alpha transparency CPU/GPU expensive - I would use it more but it slows the game too much.

Thanks!

JeZxLee

Link to comment
Share on other sites

15 hours ago, JeZxLee said:

Why is alpha transparency CPU/GPU expensive - I would use it more but it slows the game too much.

If you mean transparency of the canvas, it is because the browser has to composit the canvas with the DOM below it.

If you mean alpha of sprites in the scene, then it is not more expensive.

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...