Skip to content

Commit

Permalink
fix(types): shaderIntersectFunction is defined by three-mesh-bvh (#2089)
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 authored Sep 22, 2024
1 parent 115d464 commit d6383e1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"stats-gl": "^2.0.0",
"stats.js": "^0.17.0",
"suspend-react": "^0.1.3",
"three-mesh-bvh": "^0.7.0",
"three-mesh-bvh": "^0.7.8",
"three-stdlib": "^2.29.9",
"troika-three-text": "^0.49.0",
"tunnel-rat": "^0.1.2",
Expand Down
4 changes: 0 additions & 4 deletions src/materials/MeshRefractionMaterial.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ import { shaderMaterial } from '../core/shaderMaterial'
import { MeshBVHUniformStruct, shaderStructs, shaderIntersectFunction } from 'three-mesh-bvh'
import { version } from '../helpers/constants'

declare module 'three-mesh-bvh' {
const shaderIntersectFunction: string
}

export const MeshRefractionMaterial = /* @__PURE__ */ shaderMaterial(
{
envMap: null,
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4278,7 +4278,7 @@ __metadata:
storybook: "npm:^8.1.10"
suspend-react: "npm:^0.1.3"
three: "npm:^0.151.0"
three-mesh-bvh: "npm:^0.7.0"
three-mesh-bvh: "npm:^0.7.8"
three-stdlib: "npm:^2.29.9"
troika-three-text: "npm:^0.49.0"
ts-node: "npm:^10.9.1"
Expand Down Expand Up @@ -15575,12 +15575,12 @@ __metadata:
languageName: node
linkType: hard

"three-mesh-bvh@npm:^0.7.0":
version: 0.7.0
resolution: "three-mesh-bvh@npm:0.7.0"
"three-mesh-bvh@npm:^0.7.8":
version: 0.7.8
resolution: "three-mesh-bvh@npm:0.7.8"
peerDependencies:
three: ">= 0.151.0"
checksum: 10c0/5880a3fe7346fdb326cdd5c6515b38811c10b42aefde359c2ef62ea70511233523143a0e8cf69140e78ba6963a555bf244f87bfb676fb8f497d54ac5a322e261
checksum: 10c0/0d5f7fb4c9ae9a7477c394950a68bcd3eea88e3b0ea787dac4096cfdfcca2298268d1832575288d37ae0f19f3028f3ff79e7d70e3966bc2e8da51c95ba4209b1
languageName: node
linkType: hard

Expand Down

0 comments on commit d6383e1

Please sign in to comment.