Skip to content

Releases: sghall/react-vertex

@react-vertex/scene-helpers@1.11.0

10 Jun 21:24
Compare
Choose a tag to compare
  • Fix useSelectControl styles on iOS

@react-vertex/orbit-camera@2.15.0

10 Jun 21:24
Compare
Choose a tag to compare

@react-vertex/core@2.9.0

10 Jun 21:29
Compare
Choose a tag to compare
  • Allow creating WebGL2 context and fallback to WebGL1 via webgl1 and webgl2 props (see docs)
  • Add useWebGLVersion to get the active WebGL version within the scene
  • useTexture2d and useDataTexture now allow you to set the internal format (for WebGL2)

@react-vertex/scene-helpers@1.10.0

05 Jun 14:22
Compare
Choose a tag to compare
  • Maintenance release. No api changes.
  • Fixes to docs.

@react-vertex/orbit-camera@2.14.0

05 Jun 14:31
Compare
Choose a tag to compare
  • 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/material-hooks@2.5.0

05 Jun 14:32
Compare
Choose a tag to compare
  • Maintenance release. No api changes.
  • Fixes to docs.

@react-vertex/core@2.8.0

05 Jun 14:37
Compare
Choose a tag to compare
  • Added useProgramUniforms
  • Added useFBO and useDoubleFBO
  • Added useDataTexture and useTextureUnit
  • useCanvasSize now returns client width and height i.e. { width, clientWidth, height, clientHeight }
  • Fix for making sure useCanvasSize updates correctly