Pārlūkot izejas kodu

A-Frame demo: move the ambient light out of ar-root

customisations
alemart 7 mēnešus atpakaļ
vecāks
revīzija
9214b526de
1 mainītis faili ar 3 papildinājumiem un 5 dzēšanām
  1. 3
    5
      demos/hello-aframe/video.html

+ 3
- 5
demos/hello-aframe/video.html Parādīt failu

82
             <!-- A 3D camera adapted for AR -->
82
             <!-- A 3D camera adapted for AR -->
83
             <ar-camera></ar-camera>
83
             <ar-camera></ar-camera>
84
 
84
 
85
+            <!-- Light -->
86
+            <a-light type="ambient" intensity="1.0"></a-light>
87
+
85
             <!-- The mage -->
88
             <!-- The mage -->
86
             <ar-root reference-image="mage">
89
             <ar-root reference-image="mage">
87
 
90
 
88
                 <!-- Switch from top view to front view -->
91
                 <!-- Switch from top view to front view -->
89
                 <a-entity rotation="-90 0 0" position="0 -0.8 0">
92
                 <a-entity rotation="-90 0 0" position="0 -0.8 0">
90
 
93
 
91
-                    <!-- Light -->
92
-                    <a-light type="ambient" intensity="1.0"></a-light>
93
-
94
                     <!-- 3D model -->
94
                     <!-- 3D model -->
95
                     <a-entity
95
                     <a-entity
96
                         gltf-model="#mage-model" gltf-anim="clip: Idle"
96
                         gltf-model="#mage-model" gltf-anim="clip: Idle"
110
             <!-- The cat -->
110
             <!-- The cat -->
111
             <ar-root reference-image="cat">
111
             <ar-root reference-image="cat">
112
                 <a-entity rotation="-90 0 0" position="0 -0.8 0">
112
                 <a-entity rotation="-90 0 0" position="0 -0.8 0">
113
-                    <a-light type="ambient" intensity="1.0"></a-light>
114
-
115
                     <a-entity
113
                     <a-entity
116
                         gltf-model="#cat-model" gltf-anim="clip: Cheer"
114
                         gltf-model="#cat-model" gltf-anim="clip: Cheer"
117
                         rotation="90 0 0" scale="0.7 0.7 0.7">
115
                         rotation="90 0 0" scale="0.7 0.7 0.7">

Notiek ielāde…
Atcelt
Saglabāt