@kitware/vtk.js 26.5.1 → 26.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -549,10 +549,7 @@ function vtkOpenGLImageMapper(publicAPI, model) {
|
|
|
549
549
|
}
|
|
550
550
|
|
|
551
551
|
var dataType = imgScalars.getDataType();
|
|
552
|
-
var numComp = imgScalars.getNumberOfComponents();
|
|
553
|
-
// which makes the texture immutable.
|
|
554
|
-
|
|
555
|
-
model.openGLTexture.releaseGraphicsResources(model._openGLRenderWindow);
|
|
552
|
+
var numComp = imgScalars.getNumberOfComponents();
|
|
556
553
|
var actorProperty = actor.getProperty(); // set interpolation on the texture based on property setting
|
|
557
554
|
|
|
558
555
|
var iType = actorProperty.getInterpolationType();
|
|
@@ -875,9 +872,15 @@ function extend(publicAPI, model) {
|
|
|
875
872
|
vtkViewNode.extend(publicAPI, model, initialValues);
|
|
876
873
|
vtkReplacementShaderMapper.implementReplaceShaderCoincidentOffset(publicAPI, model, initialValues);
|
|
877
874
|
model.tris = vtkHelper.newInstance();
|
|
878
|
-
model.openGLTexture = vtkOpenGLTexture.newInstance(
|
|
879
|
-
|
|
880
|
-
|
|
875
|
+
model.openGLTexture = vtkOpenGLTexture.newInstance({
|
|
876
|
+
resizable: true
|
|
877
|
+
});
|
|
878
|
+
model.colorTexture = vtkOpenGLTexture.newInstance({
|
|
879
|
+
resizable: true
|
|
880
|
+
});
|
|
881
|
+
model.pwfTexture = vtkOpenGLTexture.newInstance({
|
|
882
|
+
resizable: true
|
|
883
|
+
});
|
|
881
884
|
model.imagemat = mat4.identity(new Float64Array(16));
|
|
882
885
|
model.imagematinv = mat4.identity(new Float64Array(16)); // Build VTK API
|
|
883
886
|
|