@kitware/vtk.js 29.9.0 → 29.9.1
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.
|
@@ -181,7 +181,7 @@ function vtkInteractorStyleImage(publicAPI, model) {
|
|
|
181
181
|
const angle = radiansFromDegrees(camera.getViewAngle());
|
|
182
182
|
viewportHeight = 2.0 * distance * Math.tan(0.5 * angle);
|
|
183
183
|
}
|
|
184
|
-
const size = rwi.getView().
|
|
184
|
+
const size = rwi.getView().getSize();
|
|
185
185
|
const delta = dy * viewportHeight / size[1];
|
|
186
186
|
distance += delta;
|
|
187
187
|
|
|
@@ -229,6 +229,11 @@ function vtkOpenGLOrderIndependentTranslucentPass(publicAPI, model) {
|
|
|
229
229
|
gl.depthFunc(gl.LEQUAL);
|
|
230
230
|
model.translucentRGBATexture.deactivate();
|
|
231
231
|
model.translucentRTexture.deactivate();
|
|
232
|
+
|
|
233
|
+
// restore scissor + viewport from renderer
|
|
234
|
+
const ts = renNode.getTiledSizeAndOrigin();
|
|
235
|
+
gl.scissor(ts.lowerLeftU, ts.lowerLeftV, ts.usize, ts.vsize);
|
|
236
|
+
gl.viewport(ts.lowerLeftU, ts.lowerLeftV, ts.usize, ts.vsize);
|
|
232
237
|
};
|
|
233
238
|
publicAPI.getShaderReplacement = () => {
|
|
234
239
|
if (model._supported) {
|