Jump to content

Pixi.Mesh gl_FragColor Alpha Channel


cafelatte
 Share

Recommended Posts

Hi,

 

I've tried to change the Alpha Channel on gl_FragColor on a Mesh, but it doesn't show a result as I expect.

For example, on the pixijs.io example ( https://pixijs.io/examples/#/mesh/triangle-color.js )

void main() {
        gl_FragColor = vec4(vColor, 1.0);
    }

If we changed the line into

void main() {
        gl_FragColor = vec4(vColor, 0.5);
    }

 

It doesn't show any difference. Is there any workaround/settings I need to adjust to use the alpha channel correctly?

 

 

Thanks.

 

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