You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-2Lines changed: 13 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -152,6 +152,17 @@ Controllers can be added with `<Controllers />` for [motion-controllers](https:/
152
152
rayMaterial={{ color:'blue' }}
153
153
/** Whether to hide controllers' rays on blur. Default is `false` */
154
154
hideRaysOnBlur={false}
155
+
/**
156
+
* Optional environment map to apply to controller models.
157
+
* Useful for make controllers look more realistic
158
+
* if you don't want to apply an env map globally on a scene
159
+
*/
160
+
envMap={Texture}
161
+
/**
162
+
* Optional environment map intensity to apply to controller models.
163
+
* Useful for tweaking the env map intensity if they look too bright or dark
164
+
*/
165
+
envMapIntensity={1}
155
166
/>
156
167
<Hands
157
168
// Optional custom models per hand. Default is the Oculus hand model
@@ -162,7 +173,7 @@ Controllers can be added with `<Controllers />` for [motion-controllers](https:/
162
173
163
174
### Environment map
164
175
165
-
You can set environment map and/or it's intensity on controller models via props on`<Controllers />`. See [ControllerEnvMap](./examples/src/demos/ControllersEnvMap.tsx)to find out how to do it.
176
+
You can set an environment map and/or its intensity on controller models via the `envMap` and `envMapIntensity`props of`<Controllers />`. See [ControllerEnvMap](./examples/src/demos/ControllersEnvMap.tsx)for reference.
`XRController` is an long-living `Object3D` that represents an [`XRInputSource`](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSource) with the following properties:
190
+
`XRController` is a long-living `Object3D` that represents an [`XRInputSource`](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSource) with the following properties:
0 commit comments