Jump to content

partially transparent objects


hannes
 Share

Recommended Posts

 

I'm new to WebGL.

 

How should I handle objects that are partially transparent, but mostly non-transparent ?

 

Lets say that the grey area of the attached image is non-transparent and the yellow area is transparent.

 

Then lets say i will be rendering alot of theese images in front of eachother so that most parts of most images will be totally/mostly covered by other images.

 

Would there be significant performance gain if I split the image in two parts.

The lower part which I know is non-transparent (and possibly flag that part as totally non-transparent somehow) and the upper part where there are transparent areas, or will that be done automagically for me by pixi / webGL / gfx card ?

post-11486-0-37548100-1415213248.png

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