Skip to content

Conversation

@ttnghia
Copy link
Contributor

@ttnghia ttnghia commented Jul 5, 2020

Change the frustum clip distance. The current 'far' clip is too small, thus some large objects can be cut off.

Change the frustum clip distance. The current 'far' clip is too small, thus some large objects can be cut off.
@mosra mosra added this to the 2020.0b milestone Jul 5, 2020
@mosra
Copy link
Owner

mosra commented Jul 5, 2020

Hmm, this could cause depth precision issues on certain browsers / platforms which use a 16-bit depth buffer by default. I'm not sure what's the situation right now but not so long ago Firefox suffered quite a lot from this (see #34, https://bugzilla.mozilla.org/show_bug.cgi?id=1202387).

Maybe a better option would be to make this configurable from outside? So you extend it where needed and leave in safe bounds where the default is enough.

Add near/far parameters for the frustum.
@ttnghia
Copy link
Contributor Author

ttnghia commented Jul 6, 2020

Sure. I changed that. Now the near/far parameters are optional.
This is the prerequisite for my next example.

@ttnghia ttnghia mentioned this pull request Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants