npm

Need private packages and team management tools?Check out npm Orgs. »

@thi.ng/webgl-msdf

0.1.2 • Public • Published

@thi.ng/webgl-msdf

npm (scoped) npm downloads Twitter Follow

This project is part of the @thi.ng/umbrella monorepo.

About

This package provides multi-channel SDF font rendering capabilities for @thi.ng/webgl, incl. optional support for basic text alignment, vertex colors (e.g. for multi-color text), and shader options to draw outlines for each character. Furthermore, the key GLSL functions are provided as shader snippets to embed this functionality in custom shaders without having to resort to copy & paste.

There're different versions of MSDF font generators. The format supported by this module is based on Don McCurdy's.

Installation

yarn add @thi.ng/webgl-msdf

Dependencies

Usage examples

See the bundled webgl-msdf example for reference...

import * as msdf from "@thi.ng/webgl-msdf";

Authors

  • Karsten Schmidt

License

© 2019 Karsten Schmidt // Apache Software License 2.0

install

npm i @thi.ng/webgl-msdf

Downloadsweekly downloads

15

version

0.1.2

license

Apache-2.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability