1
1
import React , { Suspense , useEffect , useState , useRef } from "react" ;
2
- import * as THREE from ' three'
2
+ import * as THREE from " three" ;
3
3
import { extend , useFrame } from "@react-three/fiber" ;
4
4
import CustomLights from "./models/CustomLights" ;
5
5
import {
@@ -17,9 +17,13 @@ import {
17
17
} from "@theatre/r3f" ;
18
18
19
19
import { UnrealBloomPass } from "three-stdlib" ;
20
- import { OutputPass } from 'three/examples/jsm/postprocessing/OutputPass'
21
- import { EffectComposer , Bloom , ToneMapping } from '@react-three/postprocessing'
22
- import { ToneMappingMode } from 'postprocessing'
20
+ import { OutputPass } from "three/examples/jsm/postprocessing/OutputPass" ;
21
+ import {
22
+ EffectComposer ,
23
+ Bloom ,
24
+ ToneMapping ,
25
+ } from "@react-three/postprocessing" ;
26
+ import { ToneMappingMode } from "postprocessing" ;
23
27
import Model from "./models/Mascot/Model" ;
24
28
import Mascot from "./models/Mascot/Mascot" ;
25
29
import { easing } from "maath" ;
@@ -94,19 +98,24 @@ const Experience = (props) => {
94
98
fov = { 90 }
95
99
near = { 0.1 }
96
100
far = { 70 }
97
- />
98
- < StarParticles />
101
+ />
102
+ < StarParticles />
99
103
< CustomLights />
100
104
101
105
< Model currentPage = { currentPage } />
102
- { /* <Effects disableNormalPass>
103
- <unrealBloomPass threshold={1} strength={0.9} radius={0.8} />
104
- <outputPass args={[THREE.ACESFilmicToneMapping]} />
105
- </Effects>
106
- <EffectComposer >
107
- <Bloom mipmapBlur luminanceThreshold={1} levels={8} intensity={0.40 * 4} />
108
- <ToneMapping mode={ToneMappingMode.ACES_FILMIC} />
109
- </EffectComposer> */ }
106
+ < Effects disableNormalPass >
107
+ < unrealBloomPass threshold = { 1 } strength = { 0.9 } radius = { 0.8 } />
108
+ < outputPass args = { [ THREE . ACESFilmicToneMapping ] } />
109
+ </ Effects >
110
+ < EffectComposer >
111
+ < Bloom
112
+ mipmapBlur
113
+ luminanceThreshold = { 1 }
114
+ levels = { 8 }
115
+ intensity = { 0.4 * 4 }
116
+ />
117
+ < ToneMapping mode = { ToneMappingMode . ACES_FILMIC } />
118
+ </ EffectComposer >
110
119
{ /* <Rig/> */ }
111
120
< Preload all />
112
121
</ group >
0 commit comments