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

feat(Controller): environment map #282

Merged
merged 20 commits into from
Aug 30, 2023

Conversation

saitonakamura
Copy link
Collaborator

@saitonakamura saitonakamura commented Jul 1, 2023

Allows to set env map and env map intensity on controller models via props.

Besised that, we found out a specific usecase when you want to update intensity without env map, so I split them into 2 methods. Perf should not suffer since most of this calls will be batched to a same frame

  • updated docs a bit with more fresh info
  • updated vitest to use soft assertions
  • Added example
  • Added docs
  • Added tests

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jul 11, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit f8bd39f:

Sandbox Source
examples Configuration

@saitonakamura saitonakamura marked this pull request as ready for review August 29, 2023 09:59
@saitonakamura saitonakamura changed the title Feat/env map feat(Controller): environment map Aug 29, 2023
* supported array materials
* returned api of setEnvironmentMap on XRControllerModel
@saitonakamura
Copy link
Collaborator Author

Batched calls to env map update, so traversing only happens once now

@CodyJasonBennett CodyJasonBennett merged commit b44cc10 into pmndrs:master Aug 30, 2023
1 check passed
@saitonakamura saitonakamura deleted the feat/env-map branch August 31, 2023 07:09
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