Releases: lightning-js/renderer
v2.4.0
What's Changed
- Fail gracefully createNativeCtxTexture in WebGlCoreCtxTexture load by @CosmaVergari in #406
- Performance updates by @wouterlucas in #409
- fix: image size on browsers without createImageBitmap by @pecoram in #412
- Added reset of delayFor variable to original delay when new loop starts. by @michielvandergeest in #414
- Added onTick event to animations. by @michielvandergeest in #415
New Contributors
- @CosmaVergari made their first contribution in #406
Full Changelog: v2.3.2...v2.4.0
v2.3.2
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
What's Changed
- Introduce a strictBounds flag by @wouterlucas in #404
Full Changelog: v2.3.0...v2.3.1
v2.3.0
What's Changed
- feat: Add bound status to a div state attribute in the Inspector by @wouterlucas in #399
- removed useProgram call WebGlCoreShader by @jfboeve in #400
- fix: Update RenderBounds if clipping is enabled on transform by @wouterlucas in #398
- Scheduled state for animations with delay by @michielvandergeest in #401
- Feat/webgl2 context by @erikhaandrikman in #403
Full Changelog: v2.2.0...v2.3.0
v2.2.0
What's Changed
- update the way uniform values are set by @jfboeve in #387
- perf: Replace forEach with for loops by @chiefcll in #383
- Export ImageTexture by @suresh-gangumalla in #386
- Remove uniform wrapper and use concise setUniform<1f,2f,3f,4f> methods by @wouterlucas in #381
- fix: re-evaluate isRenderable on alpha change by @wouterlucas in #390
- Removed beta terminology from the readme. by @michielvandergeest in #393
- Added an alignment test by @wouterlucas in #391
- Fix toggle clipping & boundaries by @wouterlucas in #392
- Flag parent if render texture child has changes by @erikhaandrikman in #394
- compat: Remove fromEntries for older browser support by @chiefcll in #385
New Contributors
- @suresh-gangumalla made their first contribution in #386
Full Changelog: v2.1.2...v2.2.0
v2.1.2
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
v2.1.0
What's Changed
- fix: Typescript settings for inspector by @chiefcll in #363
- Performance Benchmark by @wouterlucas in #364
- fix alpha issue dynamic shader by @jfboeve in #366
- updated typedoc config by @jfboeve in #367
- Performance: Modify bounds detection to inheritance when clipping is disabled by @wouterlucas in #365
- fix: Safari 11 doesn't have ImageBitmap by @chiefcll in #369
Full Changelog: v2.0.0...v2.1.0
v2.0.0
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
- ThreadX removed by @Drulokia in #347
- Fix for error caused by default font by @Drulokia in #344
- Support for Tree Shakable Canvas/WebGL renderer and Font Engines by @wouterlucas in #348
- fix: add get / set for data object by @chiefcll in #355
- Add SVG support to Image Texture by @wouterlucas in #353
- fix: Missing HolePunchEffectProps type by @chiefcll in #360
- Ability to prevent a node from being GC'ed #349 by @Drulokia in #356
- feat: import inspector so it isn't included by default by @chiefcll in #359
- Fix: Add support for mount property in absX and absY by @scailbc in #361
New Contributors
Full Changelog: v1.0.1...v2.0.0
v1.0.1
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