david028 Posted April 17, 2016 Share Posted April 17, 2016 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. Quote Link to comment Share on other sites More sharing options...
Wingnut Posted April 18, 2016 Share Posted April 18, 2016 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. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 18, 2016 Share Posted April 18, 2016 Hey David028, here is the code used by color correction: https://github.com/BabylonJS/Babylon.js/blob/master/src/Shaders/colorCorrection.fragment.fx As you can see alpha is also merged. This is why your canvas is no more transparent Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.