Releases: lightning-js/renderer
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
v1.0.0
What's Changed
- Remove internal Drivers and ThreadX support by @wouterlucas in #280
- Shader Animations w/ Dynamic Types for Shaders and Effects by @jfboeve in #314
- LRU-style Texture Memory Management by @frank-weindel in #301
- Make ImageWorker work on older Tizen TVs by @wouterlucas in #305
- Clamp the radius on the RoundedRectangle / RadiusEffect shader by @M4tiz in #317
- RenderState/Viewport Event changes by @jfboeve in #296
- Color setter cascade to subcomponents by @M4tiz in #311
- Add ability to query quad buffer usage info by @marcel-danilewicz-consult-red in #307
Fixes
- Allow user to flipY in 'rtt' textures by @frank-weindel in #293
- Fix initial texture loading from CoreNode by @frank-weindel in #290
- Fix: Destroy attached children when destroying a Node by @frank-weindel in #328
- Fix CoreNode.checkRenderProps, cleanup constructor by @frank-weindel in #330
- fix: Image worker broken with vite build by @chiefcll in #336
- Make effect names optional by @frank-weindel in #326
- Export ShaderController types to API by @frank-weindel in #327
- Refactored Core Animation after latest changes by @jfboeve in #329
- Export EffectDesc and related types to users by @frank-weindel in #331
- Export symbols necessary for custom shaders/effects/textures by @frank-weindel in #334
Performance
- Improve Canvas Text Renderer Performance by @frank-weindel in #319
- Only create scaleRotateTransform matrix when needed by @elsassph in #320
- SubTextures now propagate renderability to parent Textures by @frank-weindel in #292
- VRT Dockerfile: Install the correct version of PNPM by @frank-weindel in #332
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
- @M4tiz made their first contribution in #311
- @marcel-danilewicz-consult-red made their first contribution in #307
Full Changelog: v0.9.4...v1.0.0