pmndrs / react-xr

🤳 VR/AR with react-three-fiber
https://npmjs.com/@react-three/xr
MIT License
1.98k stars 137 forks source link

feat(Controller): environment map #282

Closed saitonakamura closed 10 months ago

saitonakamura commented 1 year ago

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

codesandbox-ci[bot] commented 11 months ago

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 f8bd39f4c14040a893c80c71b20dd436b89b1f1e:

Sandbox Source
examples Configuration
saitonakamura commented 10 months ago

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