@preference-sl/pref-viewer 2.9.0-beta.1 → 2.9.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.js +4 -4
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -167,16 +167,16 @@ class PrefViewer extends HTMLElement {
|
|
|
167
167
|
new Vector3(0, 1, 0),
|
|
168
168
|
this.scene
|
|
169
169
|
);
|
|
170
|
-
this.hemiLight.intensity = 0.
|
|
170
|
+
this.hemiLight.intensity = 0.5;
|
|
171
171
|
|
|
172
172
|
// 2) Soft directional “sun” for form
|
|
173
173
|
this.dirLight = new DirectionalLight(
|
|
174
174
|
"dirLight",
|
|
175
|
-
new Vector3(-
|
|
175
|
+
new Vector3(-1, -0.3, -0.5), // more horizontal light
|
|
176
176
|
this.scene
|
|
177
177
|
);
|
|
178
|
-
this.dirLight.position = new Vector3(
|
|
179
|
-
this.dirLight.intensity = 0.
|
|
178
|
+
this.dirLight.position = new Vector3(5, 3, 5); // coming from above + front/right
|
|
179
|
+
this.dirLight.intensity = 0.4;
|
|
180
180
|
|
|
181
181
|
// 3) Soft blurred shadows
|
|
182
182
|
this.shadowGen = new ShadowGenerator(1024, this.dirLight);
|