Skip to content

Releases: sghall/react-vertex

@react-vertex/[email protected]

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

@react-vertex/[email protected]

10 Jun 21:24
Compare
Choose a tag to compare

@react-vertex/[email protected]

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/[email protected]

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

@react-vertex/[email protected]

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/[email protected]

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

@react-vertex/[email protected]

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