Skip to content

Commit e3ff214

Browse files
committed
Tweak lighting in AR avatar example
1 parent a1a9dbd commit e3ff214

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

examples/ar-avatar.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@
2222
<pc-asset src="assets/scripts/face-detection.mjs"></pc-asset>
2323
<pc-asset src="assets/scripts/morph-update.mjs"></pc-asset>
2424
<pc-asset src="assets/models/raccoon-head.glb" id="raccoon"></pc-asset>
25+
<pc-asset src="assets/skies/shanghai-riverside-4k.hdr" id="shanghai"></pc-asset>
2526
<!-- Scene -->
2627
<pc-scene>
28+
<!-- Sky -->
29+
<pc-sky asset="shanghai" type="none" lighting></pc-sky>
2730
<!-- Camera -->
2831
<pc-entity name="camera">
2932
<pc-camera clear-color="0 0 0 0" fov="80"></pc-camera>
@@ -32,10 +35,6 @@
3235
<pc-script name="faceDetection"></pc-script>
3336
</pc-scripts>
3437
</pc-entity>
35-
<!-- Light -->
36-
<pc-entity name="light" rotation="45 0 0">
37-
<pc-light></pc-light>
38-
</pc-entity>
3938
<!-- Raccoon Avatar -->
4039
<pc-entity name="raccoon" scale="100 100 100">
4140
<pc-model asset="raccoon"></pc-model>

0 commit comments

Comments
 (0)