Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
demo: https://codesandbox.io/s/mixing-html-and-webgl-forked-hpqd3?file=/src/App.js
The current occlusion-behavior is not document nor have we made it public, nor can the transition be controlled/animated. the checkDepth flag that's currently documented did nothing - i think it must have been a left-over. the "occluder" prop was used in the storybook but is not documented.
The changes made in this PR:
Html
Allows you to tie HTML content to any object of your scene. It will be projected to the objects whereabouts automatically.
Html can hide behind geometry using the
occlude
prop.When the Html object hides it sets the opacity prop on the innermost div. If you want to animate or control the transition yourself then you can use
onOcclude
.