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

Set explicit clear color in documentation scenes for iOS #9297

Merged
merged 1 commit into from
Jul 6, 2016
Merged

Set explicit clear color in documentation scenes for iOS #9297

merged 1 commit into from
Jul 6, 2016

Conversation

paulmasson
Copy link
Contributor

The default clear color for iOS is inexplicably white, not black. This is a particular problem for MeshDepthMaterial documentation, since the object is white. Setting the clear color explicitly solves the problem for iOS.

@mrdoob
Copy link
Owner

mrdoob commented Jul 6, 2016

It's actually transparent, and its been fixed on iOS 10. But we should indeed add for old versions.

@mrdoob mrdoob merged commit 5e6aefc into mrdoob:dev Jul 6, 2016
@mrdoob
Copy link
Owner

mrdoob commented Jul 6, 2016

Thanks!

@paulmasson paulmasson deleted the patch branch July 6, 2016 20:05
@WestLangley
Copy link
Collaborator

@paulmasson This is misleading, IMO. You are not changing the clear color to black, in this PR; you are setting the clear alpha to 1.

I would change this to

renderer.setClearColor( 0x000000, 1 );

if that is what you intend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants