Skip to content

Releases: FunTechInc/use-shader-fx

v1.1.15

12 Apr 08:04
ae9036f
Compare
Choose a tag to compare
  • Addition of useMotionBlur.
  • Add isSizeUpdate for all hooks as an option at initialisation (can choose whether to setSize FBO for dpr updates etc.)
  • Refactoring

v1.1.13

10 Apr 05:24
f3c610e
Compare
Choose a tag to compare

When using some expensive FX (such as useFluid), lowering the dpr of the FBO of that FX can improve performance.

const [updateFx, setParams, fxObject] = useSomeFx({ size, dpr: 0.01 });

Also, you can make more detailed adjustments by passing an object to dpr instead of number.

type Dpr =
   | number
   | {
        dpr: number;
        /** you can set whether `dpr` affects `shader` and `fbo`. default is `true` for both */
        effect?: {
           /** default : `true` */
           shader?: boolean;
           /** default : `true` */
           fbo?: boolean;
        };
     };

v1.1.2 : ⚡️ More FXs, Less GLSL

27 Feb 02:52
9d50c82
Compare
Choose a tag to compare

Various changes have been made 🔨
See Storybook and README for details. 🙇‍♂️

By the way, I also made a cool demo packed with v1.1.0 ~ features! ⚡️
use-shader-fx.vercel.app

v1.0.37

15 Jan 10:48
0aec64f
Compare
Choose a tag to compare
  • Overall refactoring
  • clear() of useSingleFBO, useDoubleFBO, useCopyTexture is now executed by default

v1.0.34

12 Jan 03:03
fdd6e6d
Compare
Choose a tag to compare
  • Overall refactoring
  • Modified to allow MSAA samples to be set during initialisation of FxHooks

v1.0.32

11 Jan 03:14
c5a4d8a
Compare
Choose a tag to compare

update useSingleFBO/useDoubleFBO

  • Added the depthTexture , If set, the scene depth will be rendered to this texture. Default is false.

v1.0.31

11 Jan 02:37
e2953d1
Compare
Choose a tag to compare

update useSingleFBO/useDoubleFBO

  • Added the ability to specify MSAA samples. Default is 0
  • Added the ability to specify depthBuffer. Default is false

v1.0.30

10 Jan 05:57
97b5ac7
Compare
Choose a tag to compare

Bug fixes

some minor bug fixes

v1.0.29

26 Dec 08:19
52c345f
Compare
Choose a tag to compare

Fixed useBlending

Fixed so that if dodgeColor is not set, the map color is applied as is.

v1.0.27

25 Dec 05:19
7759369
Compare
Choose a tag to compare

DOMRect is now updated even outside the intersection of target

Changed DomSyncerObject's DOMRect to be updated even outside the target's intersection.