Skip to content

SVGLoader - self-crossing semi-transparent paths show overlap, while original SVG doesn't #18791

Closed
@soadzoor

Description

@soadzoor

Hey,

Recently I've been playing around with the SVGLoader, and noticed that self-crossing semi-transparent paths show the overlap (like adding/mixing/blending the color), while the original SVG doesn't do this, see attached pic at the intersection below:

Original SVG:

overlap

Same SVG, as loaded with SVGLoader, and rendered with three.js:
overlap2

Is there any way I could get rid of this "color addition" at the intersection (while keeping the opacity), so it would look more like the original one?

Thank you

Live example:
https://jsfiddle.net/soadzoor/rps8v7a2/13/

Three.js version
  • r114
Browser
  • All of them
OS
  • All of them

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions