JeZxLee

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

Recommended Posts

Hi,

I want to add particles for mouse click and touch events.
Can someone point me to a demo with code?
Also are particles only available with WebGL and won't work with HTML5 fallback??

Thanks!

JeZxLee

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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.

Share this post


Link to post
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...

  • Recently Browsing   0 members

    No registered users viewing this page.