Skip to content

Commit 4b5920a

Browse files
authored
Merge pull request #225 from CodyJasonBennett/fix/ssr-compat
fix(SSR): support for r151+
2 parents 72bfe72 + 672002e commit 4b5920a

File tree

4 files changed

+1355
-9
lines changed

4 files changed

+1355
-9
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
"maath": "^0.6.0",
5050
"n8ao": "^1.6.6",
5151
"postprocessing": "^6.32.1",
52-
"screen-space-reflections": "^2.5.0",
5352
"three-stdlib": "^2.23.4"
5453
},
5554
"devDependencies": {

src/effects/SSR.tsx renamed to src/effects/SSR/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React, { Ref, forwardRef, useLayoutEffect, useEffect, useContext, useMemo } from 'react'
22
/* @ts-ignore */
3-
import { SSREffect } from 'screen-space-reflections'
4-
import { EffectComposerContext } from '../EffectComposer'
5-
import { selectionContext } from '../Selection'
3+
import { SSREffect } from './screen-space-reflections'
4+
import { EffectComposerContext } from '../../EffectComposer'
5+
import { selectionContext } from '../../Selection'
66
import { useThree } from '@react-three/fiber'
77

88
// first two args are camera and texture

0 commit comments

Comments
 (0)