feat(text): publish the technique shader library as @pmndrs/text/tsl - #60
Open
thejustinwalsh wants to merge 2 commits into
Open
feat(text): publish the technique shader library as @pmndrs/text/tsl#60thejustinwalsh wants to merge 2 commits into
thejustinwalsh wants to merge 2 commits into
Conversation
size-limit report 📦
|
thejustinwalsh
force-pushed
the
refactor/tsl-subpath
branch
from
August 11, 2026 19:46
406a232 to
a0b5d60
Compare
thejustinwalsh
force-pushed
the
refactor/tsl-subpath
branch
from
August 11, 2026 23:33
a0b5d60 to
1e5db89
Compare
thejustinwalsh
marked this pull request as ready for review
August 12, 2026 00:30
The Bitmap, MSDF, Slug, and decoration TSL node graphs — including the Slug shader tree that lived in core internals — move to src/tsl/ and publish on one subpath with Tsl-prefixed types, so a future TypeGPU or third-party integration consumes the same canonical shading implementation per technique. The Three entry stops re-exporting shader symbols; Three's materials import the library like any other consumer. A types test pins the subpath surface.
thejustinwalsh
force-pushed
the
refactor/tsl-subpath
branch
from
August 12, 2026 00:32
1e5db89 to
c431148
Compare
# Conflicts: # docs/packages/glyph.md # docs/planning/typegpu-first-shader-authority.md # packages/glyph/src/internal/slug-shaders/calc-coverage.ts # packages/glyph/src/internal/slug-shaders/calc-root-code.ts # packages/glyph/src/internal/slug-shaders/index.ts # packages/glyph/src/internal/slug-shaders/reference.ts # packages/glyph/src/internal/slug-shaders/slug-band.ts # packages/glyph/src/internal/slug-shaders/slug-dilate.ts # packages/glyph/src/internal/slug-shaders/slug-render.ts # packages/glyph/src/internal/slug-shaders/slug-texture.ts # packages/glyph/src/internal/slug-shaders/solve-quadratic.ts # packages/glyph/src/internal/slug-shaders/tsl-compat.ts # packages/glyph/src/three/bitmap-shader.ts # packages/glyph/src/three/decoration-shader.ts # packages/glyph/src/three/msdf-shader.ts # packages/glyph/src/three/slug-shader.ts # packages/glyph/src/tsl.ts # packages/glyph/src/tsl/bitmap-shader.ts # packages/glyph/src/tsl/decoration-shader.ts # packages/glyph/src/tsl/msdf-shader.ts # packages/glyph/src/tsl/slug-shader.ts # packages/glyph/src/tsl/slug-shaders/calc-coverage.ts # packages/glyph/src/tsl/slug-shaders/calc-root-code.ts # packages/glyph/src/tsl/slug-shaders/index.ts # packages/glyph/src/tsl/slug-shaders/reference.ts # packages/glyph/src/tsl/slug-shaders/slug-band.ts # packages/glyph/src/tsl/slug-shaders/slug-dilate.ts # packages/glyph/src/tsl/slug-shaders/slug-render.ts # packages/glyph/src/tsl/slug-shaders/slug-texture.ts # packages/glyph/src/tsl/slug-shaders/solve-quadratic.ts # packages/glyph/src/tsl/slug-shaders/tsl-compat.ts # packages/glyph/tests/integration/three-shader.test.mjs # packages/glyph/tests/types/tsl-api.test.ts # packages/text/src/internal/slug-shaders/calc-coverage.ts # packages/text/src/internal/slug-shaders/calc-root-code.ts # packages/text/src/internal/slug-shaders/index.ts # packages/text/src/internal/slug-shaders/reference.ts # packages/text/src/internal/slug-shaders/slug-band.ts # packages/text/src/internal/slug-shaders/slug-dilate.ts # packages/text/src/internal/slug-shaders/slug-render.ts # packages/text/src/internal/slug-shaders/slug-texture.ts # packages/text/src/internal/slug-shaders/solve-quadratic.ts # packages/text/src/internal/slug-shaders/tsl-compat.ts # packages/text/src/three/bitmap-shader.ts # packages/text/src/three/decoration-shader.ts # packages/text/src/three/msdf-shader.ts # packages/text/src/three/slug-shader.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Publish the technique shader library (D-249)
The Bitmap, MSDF, Slug, and decoration TSL node graphs — including the Slug shader tree that lived in core
internal/slug-shaders/— move tosrc/tsl/and publish as@pmndrs/text/tslunderTsl-prefixed types. A renderer integration that consumes TSL node graphs reuses one canonical shading implementation per technique instead of reimplementing coverage math; the Three entry stops re-exporting shader symbols and Three's materials import the library like any other consumer.Behavior unchanged; a subpath types test pins the surface and the focused Slug TSL type-regression project moves with the tree.
Stack created with GitHub Stacks CLI • Give Feedback 💬