Skip to content

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 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
@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

2 participants