Pixi.js zoom / not re-rendering sprites?

I am learning pixi.js, intending to use it to render a large directed graph with many nodes. I forked a codepen that had something similar, but when I use a simple circle texture for sprites, and when I zoom in, the edges get blurry:

enter image description here

function makeParicleTexture(props) {
  const gfx = new PIXI.Graphics();
  gfx.lineStyle(props.strokeWidth, props.stroke);
  gfx.drawCircle(props.size / 2, props.size / 2, 3)

  const texture = app.renderer.generateTexture(gfx, PIXI.SCALE_MODES.LINEAR, 2);
  return texture;

Here is the codepen: https://codepen.io/mfbridges/pen/xxRqGRz

How can I ask pixi.js to re-rasterize the circle at this new zoom level so that edges of the circle are crisp when you zoom in?

I have seen many examples where this happens seemingly automatically (e.g. here: https://bl.ocks.org/pkerpedjiev/cf791db09ebcabaec0669362f4df1776) so I’m confused why it’s not working in the codepen above.

117 thoughts on “Pixi.js zoom / not re-rendering sprites?”

  1. I loved as much as you will receive carried out right
    here. The sketch is tasteful, your authored material stylish.
    nonetheless, you command get got an impatience over that you
    wish be delivering the following. unwell unquestionably come further formerly again since exactly the
    same nearly a lot often inside case you shield this hike.

  2. Hello there, just became aware of your blog through Google, and found that it is really informative.
    I am gonna watch out for brussels. I’ll appreciate if you continue
    this in future. Lots of people will be benefited
    from your writing. Cheers!

  3. Somebody necessarily help to make significantly articles I’d state.
    This is the very first time I frequented your website page
    and so far? I amazed with the research you made to create this actual
    post extraordinary. Magnificent process!

  4. Thanks , I’ve just been searching for info approximately this topic for
    a long time and yours is the best I’ve found out till now.
    But, what in regards to the conclusion? Are you sure in regards to the source?

  5. hey there and thank you for your info – I’ve certainly picked up anything new
    from right here. I did however expertise several technical issues using
    this website, as I experienced to reload the website a lot of times
    previous to I could get it to load correctly. I had been wondering if your hosting is OK?
    Not that I’m complaining, but slow loading instances times will sometimes affect your placement in google and
    can damage your high quality score if ads and marketing with Adwords.
    Anyway I am adding this RSS to my email and can look out for much more of
    your respective interesting content. Ensure that
    you update this again soon. https://parttimejobshiredin30minutes.wildapricot.org/ part time jobs hired in 30 minutes