File tree Expand file tree Collapse file tree 7 files changed +2349
-976
lines changed
modelviewer.dev/examples/postprocessing Expand file tree Collapse file tree 7 files changed +2349
-976
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ npm install three @google/model-viewer @google/model-viewer-effects
52
52
<script type =" importmap" >
53
53
{
54
54
" imports" : {
55
- " three" : " https://cdn.jsdelivr.net/npm/three@^0.164 .1/build/three.module.min.js"
55
+ " three" : " https://cdn.jsdelivr.net/npm/three@^0.167 .1/build/three.module.min.js"
56
56
}
57
57
}
58
58
</script >
Original file line number Diff line number Diff line change 100
100
"rollup-plugin-dts" : " ^4.2.2" ,
101
101
"rollup-plugin-polyfill" : " ^3.0.0" ,
102
102
"rollup-plugin-terser" : " ^7.0.2" ,
103
- "three" : " ^0.164 .1" ,
103
+ "three" : " ^0.167 .1" ,
104
104
"typescript" : " 4.8.4"
105
105
},
106
106
"publishConfig" : {
107
107
"access" : " public"
108
108
}
109
- }
109
+ }
Original file line number Diff line number Diff line change 87
87
"@monogrid/gainmap-js" : " ^3.0.1"
88
88
},
89
89
"peerDependencies" : {
90
- "three" : " ^0.164 .1"
90
+ "three" : " ^0.167 .1"
91
91
},
92
92
"devDependencies" : {
93
93
"@rollup/plugin-commonjs" : " ^22.0.1" ,
110
110
"rollup-plugin-polyfill" : " ^3.0.0" ,
111
111
"rollup-plugin-terser" : " ^7.0.2" ,
112
112
"typescript" : " 4.8.4" ,
113
- "three" : " ^0.164 .1"
113
+ "three" : " ^0.167 .1"
114
114
},
115
115
"publishConfig" : {
116
116
"access" : " public"
117
117
}
118
- }
118
+ }
Original file line number Diff line number Diff line change @@ -35,6 +35,11 @@ class MockXRFrame implements XRFrame {
35
35
return { } as XRPose ;
36
36
}
37
37
38
+ // We don't use getDepthInformation()
39
+ getDepthInformation ( _view : XRView ) : XRCPUDepthInformation | null | undefined {
40
+ return ;
41
+ }
42
+
38
43
getViewerPose ( _referenceSpace ?: XRReferenceSpace ) : XRViewerPose {
39
44
// Rotate 180 degrees on Y (so it's not the default)
40
45
// and angle 45 degrees towards the ground, like a phone.
Original file line number Diff line number Diff line change @@ -655,7 +655,7 @@ export class ARRenderer extends EventDispatcher<
655
655
656
656
let hit = null ;
657
657
if ( finger . results . length > 0 ) {
658
- hit = this . getHitPoint ( finger . results [ 0 ] )
658
+ hit = this . getHitPoint ( finger . results [ 0 ] ) ;
659
659
}
660
660
if ( hit == null ) {
661
661
hit = this . getTouchLocation ( ) ;
Original file line number Diff line number Diff line change 32
32
< script type ="importmap ">
33
33
{
34
34
"imports" : {
35
- "three" : "https://cdn.jsdelivr.net/npm/three@^0.164 .1/build/three.module.min.js"
35
+ "three" : "https://cdn.jsdelivr.net/npm/three@^0.167 .1/build/three.module.min.js"
36
36
}
37
37
}
38
38
</ script >
@@ -104,7 +104,7 @@ <h2 class="demo-title">Setup Post Processing</h2>
104
104
< script type ="importmap-noexecute ">
105
105
{
106
106
"imports" : {
107
- "three" : "https://cdn.jsdelivr.net/npm/three@^0.164 .1/build/three.module.min.js"
107
+ "three" : "https://cdn.jsdelivr.net/npm/three@^0.167 .1/build/three.module.min.js"
108
108
}
109
109
}
110
110
</ script >
You can’t perform that action at this time.
0 commit comments