Skip to content

Commit

Permalink
fix: transition opacity
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic100 committed Aug 17, 2023
1 parent 8e98fe7 commit 8e89888
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/core/src/services/Renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ export class Renderer extends AbstractService {

this.container = document.createElement('div');
this.container.className = 'psv-canvas-container';
this.container.style.background = this.config.canvasBackground;
this.container.appendChild(this.renderer.domElement);
this.viewer.container.appendChild(this.container);

Expand Down Expand Up @@ -310,7 +309,6 @@ export class Renderer extends AbstractService {
easing: 'outCubic',
onTick: (properties) => {
this.viewer.adapter.setTextureOpacity(mesh, properties.opacity);
this.viewer.adapter.setTextureOpacity(this.mesh, 1 - properties.opacity);

if (zoomProvided) {
this.viewer.zoom(properties.zoom);
Expand Down

0 comments on commit 8e89888

Please sign in to comment.