Skip to content

Commit 8b54eca

Browse files
committed
fix(webgpu): fix rendering when coloring with cell data array
Regression since 30.9.0
1 parent ee124ce commit 8b54eca

File tree

1 file changed

+2
-1
lines changed
  • Sources/Rendering/WebGPU/CellArrayMapper

1 file changed

+2
-1
lines changed

Sources/Rendering/WebGPU/CellArrayMapper/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,8 @@ function vtkWebGPUCellArrayMapper(publicAPI, model) {
11291129
// --- Texture Coordinates ---
11301130
let tcoords = null;
11311131
if (
1132-
model.renderable.getInterpolateScalarsBeforeMapping?.() &&
1132+
(model.renderable.getAreScalarsMappedFromCells() ||
1133+
model.renderable.getInterpolateScalarsBeforeMapping?.()) &&
11331134
model.renderable.getColorCoordinates()
11341135
) {
11351136
tcoords = model.renderable.getColorCoordinates();

0 commit comments

Comments
 (0)