diff --git a/README.md b/README.md index 0dab9696..cd8cf5e8 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ From each `fxHooks`, you can receive [`updateFx`, `setParams`, `fxObject`] in ar 3. `fxObject` - An object that holds various FX components, such as scene, camera, material, and renderTarget. ```js -const [updateFx, setParams, fxObject] = useFluid(config); +const [updateFx, setParams, fxObject] = useSomeFx(config); ``` Execute `updateFx` in `useFrame`. The first argument receives the RootState from `useFrame`, and the second one takes `HookPrams`. Each fx has its `HookPrams`, and each type is exported. diff --git a/package-lock.json b/package-lock.json index f814d9f7..4cb946de 100644 --- a/package-lock.json +++ b/package-lock.json @@ -31,7 +31,7 @@ "zustand": "^4.4.1" }, "devDependencies": { - "@hmng8/use-shader-fx": "^1.0.13", + "@hmng8/use-shader-fx": "^1.0.14", "@storybook/addon-essentials": "^7.5.3", "@storybook/addon-interactions": "^7.5.3", "@storybook/addon-links": "^7.5.3", @@ -2869,9 +2869,9 @@ "dev": true }, "node_modules/@hmng8/use-shader-fx": { - "version": "1.0.13", - "resolved": "https://registry.npmjs.org/@hmng8/use-shader-fx/-/use-shader-fx-1.0.13.tgz", - "integrity": "sha512-BHGAXV6F2xv7Rkw3++AbF2moikBtRFVmlzbNmdPcfkTRQ/psGR9OGoucpbNQ1gbYaWgBdyFnPhJWjAvcIYw5Mw==", + "version": "1.0.14", + "resolved": "https://registry.npmjs.org/@hmng8/use-shader-fx/-/use-shader-fx-1.0.14.tgz", + "integrity": "sha512-LfcmhMaNQB5KHjBxmb6jIVRoXAIN+YMKSxf82q3PlnURU5vCNWGpbN61UamHVQEZfZD5T+Q1g6TZ+mbNUzvKfg==", "dev": true, "peerDependencies": { "@react-three/fiber": ">=8.13.0", diff --git a/package.json b/package.json index a2110b7b..fcb3a468 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "zustand": "^4.4.1" }, "devDependencies": { - "@hmng8/use-shader-fx": "^1.0.13", + "@hmng8/use-shader-fx": "^1.0.14", "@storybook/addon-essentials": "^7.5.3", "@storybook/addon-interactions": "^7.5.3", "@storybook/addon-links": "^7.5.3",