huangxingxing 1 vuosi sitten
vanhempi
säilyke
77e410f253
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/control/vtkModel.js

+ 1 - 1
src/control/vtkModel.js

@@ -105,8 +105,8 @@ export class VtkModel {
     this.renderWindowWith =  vtkGenericRenderWindow.newInstance();
     this.renderWindowWith.setContainer(rootContainer);
     this.renderer = this.renderWindowWith.getRenderer();
+    this.renderer.setBackground(0.0, 0.0, 0.0, 0.0)
     this.renderWindow = this.renderWindowWith.getRenderWindow();
-    // this.renderWindow.setTransparentBackground(true);
 
     //选取
     this.lastActor = null;