Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transparent background not working if HDR is enabled #7427

Closed
lilleyse opened this issue Dec 19, 2018 · 0 comments
Closed

Transparent background not working if HDR is enabled #7427

lilleyse opened this issue Dec 19, 2018 · 0 comments

Comments

@lilleyse
Copy link
Contributor

@bagnell could you look into this? It seems like it would be a quick fix.

Borrowing the Sandcastle example from @mramato in #2866 (comment)

//Create the Cesium viewer
var viewer = new Cesium.Viewer('cesiumContainer', {
    skyBox : false,
    skyAtmosphere: false,
    contextOptions : {
        webgl: {
            alpha: true
        }
    }
});
//Set the background of the scene to transparent
viewer.scene.backgroundColor = Cesium.Color.TRANSPARENT;

//HDR needs to be disable for transparent backgrounds
viewer.scene.highDynamicRange = false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant