Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

modify simpleblur import #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
roku-ft merged 1 commit into FunTechInc:main from roku-ft:main
Dec 9, 2023
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
modify simpleblur import
  • Loading branch information
roku-ft committed Dec 9, 2023
commit 1245cd6d59d8c3745471730677ea057e7f6c2de1
16 changes: 8 additions & 8 deletions packages/use-shader-fx/src/hooks/useSimpleBlur/index.ts
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import { useCallback, useMemo } from "react";
import * as THREE from "three";
import { RootState, Size } from "@react-three/fiber";
import { useMesh } from "./useMesh";
import {
useCamera,
useSingleFBO,
useDoubleFBO,
setUniform,
useParams,
} from "@hmng8/use-shader-fx";
import type { HooksReturn } from "@hmng8/use-shader-fx/types/hooks";

import { useCamera } from "../../utils/useCamera";
import { useSingleFBO } from "../../utils/useSingleFBO";
import { useDoubleFBO } from "../../utils/useDoubleFBO";
import { setUniform } from "../../utils/setUniforms";
import { useParams } from "../../utils/useParams";

import type { HooksReturn } from "../types";

export type SimpleBlurParams = {
/** Make this texture blur , Default:new THREE.Texture() */
Expand Down
2 changes: 1 addition & 1 deletion packages/use-shader-fx/src/hooks/useSimpleBlur/useMesh.ts
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as THREE from "three";
import vertexShader from "./shader/main.vert";
import fragmentShader from "./shader/main.frag";

import { useAddMesh } from "@hmng8/use-shader-fx";
import { useAddMesh } from "../../utils/useAddMesh";

export class SampleMaterial extends THREE.ShaderMaterial {
uniforms!: {
Expand Down

AltStyle によって変換されたページ (->オリジナル) /