Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/use-shader-fx/build/use-shader-fx.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/use-shader-fx/build/use-shader-fx.umd.cjs.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/use-shader-fx/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/use-shader-fx/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@funtech-inc/use-shader-fx",
"version": "1.1.37",
"version": "1.1.38",
"description": "⚡️ More FXs, Less GLSL",
"main": "./build/use-shader-fx.umd.cjs",
"module": "./build/use-shader-fx.js",
Expand Down
5 changes: 2 additions & 3 deletions packages/use-shader-fx/src/utils/useDoubleFBO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ type UseDoubleFBOReturn = [
];

/**
* @param dpr If dpr is set, dpr will be multiplied, default : `false`
* @param isSizeUpdate Whether to resize when resizing occurs. If isDpr is true, set FBO to setSize even if dpr is changed, default : `false`
* @returns [{read:THREE.WebGLRenderTarget,write:THREE.WebGLRenderTarget} , updateFBO] -Receives the RenderTarget as the first argument and the update function as the second argument.
* @description Custom hook for setting up double buffering with WebGL render targets.
* @param UseFboProps same as `useSingleFBO`
*/
export const useDoubleFBO = (props: UseFboProps): UseDoubleFBOReturn => {
const {
Expand Down
1 change: 1 addition & 0 deletions packages/use-shader-fx/src/utils/useSingleFBO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ type UseSingleFBOReturn = [THREE.WebGLRenderTarget, UpdateRenderTarget];
/**
* @param dpr If dpr is set, dpr will be multiplied, default:false
* @param isSizeUpdate Whether to resize when resizing occurs. If isDpr is true, set FBO to setSize even if dpr is changed, default:false
* @param depthBuffer Unlike the default in three.js, the default is `false`.
* @returns [THREE.WebGLRenderTarget , updateFBO] -Receives the RenderTarget as the first argument and the update function as the second argument.
*/
export const useSingleFBO = (props: UseFboProps): UseSingleFBOReturn => {
Expand Down
5 changes: 2 additions & 3 deletions packages/use-shader-fx/types/utils/useDoubleFBO.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ type UseDoubleFBOReturn = [
FBOUpdateFunction
];
/**
* @param dpr If dpr is set, dpr will be multiplied, default : `false`
* @param isSizeUpdate Whether to resize when resizing occurs. If isDpr is true, set FBO to setSize even if dpr is changed, default : `false`
* @returns [{read:THREE.WebGLRenderTarget,write:THREE.WebGLRenderTarget} , updateFBO] -Receives the RenderTarget as the first argument and the update function as the second argument.
* @description Custom hook for setting up double buffering with WebGL render targets.
* @param UseFboProps same as `useSingleFBO`
*/
export declare const useDoubleFBO: (props: UseFboProps) => UseDoubleFBOReturn;
export {};
1 change: 1 addition & 0 deletions packages/use-shader-fx/types/utils/useSingleFBO.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ type UseSingleFBOReturn = [THREE.WebGLRenderTarget, UpdateRenderTarget];
/**
* @param dpr If dpr is set, dpr will be multiplied, default:false
* @param isSizeUpdate Whether to resize when resizing occurs. If isDpr is true, set FBO to setSize even if dpr is changed, default:false
* @param depthBuffer Unlike the default in three.js, the default is `false`.
* @returns [THREE.WebGLRenderTarget , updateFBO] -Receives the RenderTarget as the first argument and the update function as the second argument.
*/
export declare const useSingleFBO: (props: UseFboProps) => UseSingleFBOReturn;
Expand Down