Pārlūkot izejas kodu

Add groundColor

customisations
alemart 9 mēnešus atpakaļ
vecāks
revīzija
014e99901d
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3
    1
      demos/hello-babylon/demo.js

+ 3
- 1
demos/hello-babylon/demo.js Parādīt failu

@@ -135,8 +135,10 @@ class EnchantedDemo extends ARDemo
135 135
     _initLight()
136 136
     {
137 137
         const light = new BABYLON.HemisphericLight('light', BABYLON.Vector3.Up());
138
+
138 139
         light.intensity = 1.0;
139
-        light.diffuse.set(1, 1, 0.9);
140
+        light.diffuse.set(1, 1, 1);
141
+        light.groundColor.set(1, 1, 1);
140 142
         light.specular.set(0, 0, 0);
141 143
     }
142 144
 

Notiek ielāde…
Atcelt
Saglabāt