Skip to content

Commit 9ba5e57

Browse files
authored
Merge pull request #25 from web3dev1337/feature/readme-refresh
fix: 3D preview sphere showing washed out B&W instead of colors
2 parents dbcf815 + db24f73 commit 9ba5e57

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/preview-3d.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export class Preview3D {
9797
this.renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));
9898
this.renderer.outputColorSpace = THREE.SRGBColorSpace;
9999
this.renderer.toneMapping = THREE.ACESFilmicToneMapping;
100-
this.renderer.toneMappingExposure = 2.4;
100+
this.renderer.toneMappingExposure = 1.4;
101101
this.renderer.shadowMap.enabled = true;
102102
this.renderer.shadowMap.type = THREE.PCFSoftShadowMap;
103103
this.renderer.domElement.style.cssText = "position:absolute;top:28px;left:0";
@@ -130,7 +130,7 @@ export class Preview3D {
130130
this.scene.add(hemi);
131131

132132
// Key light — main directional with shadows
133-
const keyLight = new THREE.DirectionalLight(0xffeedd, 3.5);
133+
const keyLight = new THREE.DirectionalLight(0xffeedd, 1.8);
134134
keyLight.position.set(3, 4, 3);
135135
keyLight.castShadow = true;
136136
keyLight.shadow.mapSize.set(512, 512);
@@ -143,7 +143,7 @@ export class Preview3D {
143143
this.scene.add(keyLight);
144144

145145
// Fill light — cooler, softer
146-
const fillLight = new THREE.DirectionalLight(0x9ab6e6, 1.8);
146+
const fillLight = new THREE.DirectionalLight(0x9ab6e6, 0.8);
147147
fillLight.position.set(-3, 2, -2);
148148
this.scene.add(fillLight);
149149

@@ -159,11 +159,11 @@ export class Preview3D {
159159

160160
this.material = new THREE.MeshStandardMaterial({
161161
color: 0xffffff,
162-
roughness: 0.55,
162+
roughness: 0.45,
163163
metalness: 0.0,
164-
envMapIntensity: 0.6,
164+
envMapIntensity: 0.3,
165165
emissive: new THREE.Color(0xffffff),
166-
emissiveIntensity: 0.85,
166+
emissiveIntensity: 0.35,
167167
side: THREE.DoubleSide
168168
});
169169
this.material.normalScale.set(1.5, 1.5);

0 commit comments

Comments
 (0)