File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 47
47
},
48
48
"dependencies" : {
49
49
"maath" : " ^0.5.3" ,
50
- "n8ao" : " ^1.4.2 " ,
50
+ "n8ao" : " ^1.5.1 " ,
51
51
"postprocessing" : " ^6.31.0" ,
52
52
"screen-space-reflections" : " ^2.5.0" ,
53
53
"three-stdlib" : " ^2.23.4"
Original file line number Diff line number Diff line change @@ -15,15 +15,19 @@ type N8AOProps = {
15
15
denoiseSamples ?: number
16
16
denoiseRadius ?: number
17
17
color ?: ReactThreeFiber . Color
18
+ halfRes ?: boolean
19
+ depthAwareUpsampling ?: boolean
18
20
screenSpaceRadius ?: boolean
19
21
renderMode ?: 0 | 1 | 2 | 3 | 4
20
22
}
21
23
22
24
export const N8AO = forwardRef < N8AOPostPass , N8AOProps > (
23
25
(
24
26
{
27
+ halfRes,
25
28
screenSpaceRadius,
26
29
quality,
30
+ depthAwareUpsampling = true ,
27
31
aoRadius = 5 ,
28
32
aoSamples = 16 ,
29
33
denoiseSamples = 4 ,
@@ -48,6 +52,8 @@ export const N8AO = forwardRef<N8AOPostPass, N8AOProps>(
48
52
denoiseRadius,
49
53
screenSpaceRadius,
50
54
renderMode,
55
+ halfRes,
56
+ depthAwareUpsampling,
51
57
} )
52
58
} , [
53
59
screenSpaceRadius ,
@@ -59,6 +65,8 @@ export const N8AO = forwardRef<N8AOPostPass, N8AOProps>(
59
65
denoiseSamples ,
60
66
denoiseRadius ,
61
67
renderMode ,
68
+ halfRes ,
69
+ depthAwareUpsampling ,
62
70
] )
63
71
useLayoutEffect ( ( ) => {
64
72
if ( quality ) effect . setQualityMode ( quality . charAt ( 0 ) . toUpperCase ( ) + quality . slice ( 1 ) )
Original file line number Diff line number Diff line change @@ -7547,10 +7547,10 @@ mute-stream@~1.0.0:
7547
7547
resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-1.0.0.tgz#e31bd9fe62f0aed23520aa4324ea6671531e013e"
7548
7548
integrity sha512-avsJQhyd+680gKXyG/sQc0nXaC6rBkPOfyHYcFb9+hdkqQkR9bdnkJ0AMZhke0oesPqIO+mFFJ+IdBc7mst4IA==
7549
7549
7550
- n8ao@^1.4.2 :
7551
- version "1.4.2 "
7552
- resolved "https://registry.yarnpkg.com/n8ao/-/n8ao-1.4.2 .tgz#46ad1e0a286aa64e62216e7a9cb1001470eec74a "
7553
- integrity sha512-B5bwykVEjuqjPbwzoIHlzuDcDKBznqZ4Q3mky+Q7g69J7BxXGzQWKjNjEpaQhxybEgtAzByVJm59EANzNktfMw ==
7550
+ n8ao@^1.5.1 :
7551
+ version "1.5.1 "
7552
+ resolved "https://registry.yarnpkg.com/n8ao/-/n8ao-1.5.1 .tgz#e48960352e9c358955d7da072a341bbc64961bb5 "
7553
+ integrity sha512-Dn5o6ecmLC1xZm2mby2qdGYgwKcNsC9oKv85TQBKFbDJVzUHGXV2oys14rDl6nhwjH+zZU3YcLJkMcY7qe+jTg ==
7554
7554
7555
7555
nanoid@^3.3.1, nanoid@^3.3.6 :
7556
7556
version "3.3.6"
You can’t perform that action at this time.
0 commit comments