Jump to content

Alpha Transparency after post processing


david028
 Share

Recommended Posts

I notice that when I use the FxaaPostProcess my scene retains its alpha transparancy. This is important because I am overlaying my scene over a background image behind the canvas.

When I use the ColorCorrectionPostProcess the background becomes black.

Does anyone have a way around this? If I insert my background into the scene it will either move with the camera or be affected by the ColorCorrectionPostProcess which I do not want.

Link to comment
Share on other sites

Hi d28, how ya been?  I hope well.

   Would the Babylon.Layer be of use?  Here is a demo of a layer being used as a fixed background.  Thought I would ask.  :)

I might be off-topic a bit, though.  You might want a webpage background to show-through.  I think it uses scene.clearColor = new BABYLON.Color4(0, 0, 0, 0);   [4th value = alpha]. 

You probably know all this already, and I am likely standing in the way of a post-process bug fix, so I'll sign off now.  :)

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