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

Fix model 2D z-fighting #3933

Merged
merged 7 commits into from
May 19, 2016
Merged

Fix model 2D z-fighting #3933

merged 7 commits into from
May 19, 2016

Conversation

bagnell
Copy link
Contributor

@bagnell bagnell commented May 18, 2016

Uniformly divides the camera frustum in 2D. The default depth for each frustum is 1.75e6 which divides the camera frustum up to 9 times. Increasing Scene.frustumSize2D will increase performance by decreasing the number of frustums but may cause some z-fighting.

* @type {Number}
* @default 1.75e6
*/
this.frustumSize2D = 1.75e6;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put this under farToNearRatio and perhaps name it nearToFarDistance2D for better symmetry.

Update CHANGES.md.

@pjcozzi
Copy link
Contributor

pjcozzi commented May 19, 2016

Looks good, just those trivial comments.

@bagnell
Copy link
Contributor Author

bagnell commented May 19, 2016

@pjcozzi This is ready.

@pjcozzi pjcozzi merged commit 7b48e41 into models-2D May 19, 2016
@pjcozzi pjcozzi deleted the models-2D-z-fighting branch May 19, 2016 18:37
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.

2 participants