huangxingxing hai 1 ano
pai
achega
77e410f253
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;