Skip to content

Commit

Permalink
chore: fix scene loader (#1711)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxudong authored Aug 30, 2023
1 parent 9743ea1 commit 6573b15
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/loader/src/SceneLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ class SceneLoader extends Loader<Scene> {
scene.ambientLight.diffuseSolidColor.copyFrom(ambient.diffuseSolidColor);
});
promises.push(ambientLightPromise);
} else {
scene.ambientLight.diffuseIntensity = ambient.diffuseIntensity;
scene.ambientLight.specularIntensity = ambient.specularIntensity;
scene.ambientLight.diffuseSolidColor.copyFrom(ambient.diffuseSolidColor);
}

const background = data.scene.background;
Expand Down

0 comments on commit 6573b15

Please sign in to comment.