Releases: sghall/react-vertex
Releases · sghall/react-vertex
@react-vertex/[email protected]
- Fix
useSelectControl
styles on iOS
@react-vertex/[email protected]
- Updates to docs
@react-vertex/[email protected]
- Allow creating WebGL2 context and fallback to WebGL1 via
webgl1
andwebgl2
props (see docs) - Add
useWebGLVersion
to get the active WebGL version within the scene useTexture2d
anduseDataTexture
now allow you to set the internal format (for WebGL2)
@react-vertex/[email protected]
- Maintenance release. No api changes.
- Fixes to docs.
@react-vertex/[email protected]
- Add ability to toggle rotation and dolly functions.
- Set
userRotate
to false to disable rotation in x and y (orbit camera only rotates in x and y). - Set
userRotateX
to false to disable only rotation in x. - Set
userRotateY
to false to disable only rotation in y. - Set
userDolly
to false to disable dolly function.
Example:
const camera = useOrbitCamera(55, width / height, 1, 5000, c => {
c.setPosition([0, 0, 500])
c.userRotate = false
})
@react-vertex/[email protected]
- Maintenance release. No api changes.
- Fixes to docs.
@react-vertex/[email protected]
- Added
useProgramUniforms
- Added
useFBO
anduseDoubleFBO
- Added
useDataTexture
anduseTextureUnit
useCanvasSize
now returns client width and height i.e.{ width, clientWidth, height, clientHeight }
- Fix for making sure
useCanvasSize
updates correctly