Skip to content

Releases: lightning-js/renderer

v2.3.2

07 Oct 13:20
Compare
Choose a tag to compare

What's Changed

  • Refactor example font URLs in installFonts.ts and update base path in Fonts by @wouterlucas in #408
  • Separate font cache per renderer instance by @m-hall in #405

New Contributors

Full Changelog: v2.3.1...v2.3.2

v2.3.1

02 Oct 08:30
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.3.0...v2.3.1

v2.3.0

01 Oct 07:05
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.2.0...v2.3.0

v2.2.0

25 Sep 17:33
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.1.2...v2.2.0

v2.1.2

13 Sep 11:08
Compare
Choose a tag to compare

What's Changed

  • Fix example project custom-shader-effect-texture by @jfboeve in #378
  • fix: Move marking the outOfBound render state to the end of the updat… by @wouterlucas in #380

Full Changelog: v2.1.1...v2.1.2

v2.1.1

12 Sep 08:26
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.1.0...v2.1.1

v2.1.0

04 Sep 20:00
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.0.0...v2.1.0

v2.0.0

23 Aug 10:57
Compare
Choose a tag to compare

Breaking Changes!

Support for Tree Shakable Canvas/WebGL renderer and Font Engines and importable inspector have changes to the way you initialize the Lightning 3 renderer.

It is required to import your desired render engine (WebGL or Canvas) and font engine(s) (SDF or Canvas) to provide those on setup when initializing the renderer as follows:

 const renderer = new RendererMain(
    {
      appWidth,
      appHeight,
      boundsMargin: [100, 100, 100, 100],
      deviceLogicalPixelRatio: logicalPixelRatio,
      devicePhysicalPixelRatio: physicalPixelRatio,
      clearColor: 0x00000000,
      fpsUpdateInterval: logFps ? 1000 : 0,
      enableContextSpy,
      inspector,
      renderEngine:
        renderMode === 'webgl' ? WebGlCoreRenderer : CanvasCoreRenderer,
      fontEngines: [SdfTextRenderer, CanvasTextRenderer],
      ...customSettings,
    },
    'app',
  )

Where inspector, WebGlCoreRenderer, CanvasCoreRenderer, SdfTextRenderer and CanvasTextRenderer are imported:

WebGL renderers:

import {
  WebGlCoreRenderer,
  SdfTextRenderer,
} from '@lightningjs/renderer/webgl';

Canvas renderers:

import {
  CanvasCoreRenderer,
  CanvasTextRenderer,
} from '@lightningjs/renderer/canvas';

Inspector:

import { Inspector } from '@lightningjs/renderer/inspector';

What's Changed

New Contributors

Full Changelog: v1.0.1...v2.0.0

v1.0.1

18 Jul 09:34
Compare
Choose a tag to compare

What's Changed

  • Fix: Remove from active animations when reverse stopMethod is complete by @Drulokia in #339
  • Fix hdpi precision Shader issue for old Chromium device by @albdima83 in #341

Full Changelog: v1.0.0...v1.0.1

v1.0.0

15 Jul 14:47
7ee168e
Compare
Choose a tag to compare

What's Changed

Fixes

Performance

Non-User Facing

  • refactor(CoreTextureManager): Eliminate ctxTextureCache by @frank-weindel in #299
  • Add v8 coverage & upgrade to Vite 5 by @M4tiz in #300
  • Passing renderCoords from CoreNode to addQuad by @jfboeve in #295

New Contributors

Full Changelog: v0.9.4...v1.0.0