Skip to content

Commit 07bfaab

Browse files
committed
fix background
1 parent 0ac72f2 commit 07bfaab

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

example/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,7 @@ async function init() {
177177
document.body.appendChild( stats.dom );
178178
renderer.physicallyCorrectLights = true;
179179
renderer.toneMapping = ACESFilmicToneMapping;
180-
ptRenderer.material.setDefine( 'FEATURE_GRADIENT_BG', 1 );
181-
scene.background = new Color( 0x060606 );
180+
scene.background = backgroundMap;
182181
ptRenderer.tiles.set( params.tilesX, params.tilesY );
183182

184183
updateCamera( params.cameraProjection );
@@ -375,7 +374,7 @@ function buildGui() {
375374

376375
if ( v === 'Gradient' ) {
377376

378-
scene.background = new Color( 0x060606 );
377+
scene.background = backgroundMap;
379378
ptRenderer.material.backgroundMap = backgroundMap;
380379

381380
} else {

0 commit comments

Comments
 (0)