Skip to content
Snippets Groups Projects
Commit e636397f authored by Alexander Rose's avatar Alexander Rose
Browse files

ensure marking edges are at least one pixel wide

parent 6d76bf12
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,7 @@ Note that since we don't clearly distinguish between a public and private interf ...@@ -11,6 +11,7 @@ Note that since we don't clearly distinguish between a public and private interf
- Reduce over-blurring occlusion at larger view distances - Reduce over-blurring occlusion at larger view distances
- Fix occlusion artefact with non-canvas viewport and pixel-ratio > 1 - Fix occlusion artefact with non-canvas viewport and pixel-ratio > 1
- Update nodejs-shims conditionals to handle polyfilled document object in NodeJS environment. - Update nodejs-shims conditionals to handle polyfilled document object in NodeJS environment.
- Ensure marking edges are at least one pixel wide
## [v3.31.4] - 2023-02-24 ## [v3.31.4] - 2023-02-24
......
...@@ -106,7 +106,7 @@ export class MarkingPass { ...@@ -106,7 +106,7 @@ export class MarkingPass {
const { highlightEdgeColor, selectEdgeColor, edgeScale, innerEdgeFactor, ghostEdgeStrength, highlightEdgeStrength, selectEdgeStrength } = props; const { highlightEdgeColor, selectEdgeColor, edgeScale, innerEdgeFactor, ghostEdgeStrength, highlightEdgeStrength, selectEdgeStrength } = props;
const { values: edgeValues } = this.edge; const { values: edgeValues } = this.edge;
const _edgeScale = Math.round(edgeScale * this.webgl.pixelRatio); const _edgeScale = Math.max(1, Math.round(edgeScale * this.webgl.pixelRatio));
if (edgeValues.dEdgeScale.ref.value !== _edgeScale) { if (edgeValues.dEdgeScale.ref.value !== _edgeScale) {
ValueCell.update(edgeValues.dEdgeScale, _edgeScale); ValueCell.update(edgeValues.dEdgeScale, _edgeScale);
this.edge.update(); this.edge.update();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment