three-bmfont-text
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "three-bmfont-text", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "renders BMFont files in ThreeJS with word-wrapping", | ||
@@ -28,11 +28,17 @@ "main": "index.js", | ||
"budo": "^7.0.2", | ||
"glsl-aastep": "^1.0.1", | ||
"glsl-hsl2rgb": "^1.1.0", | ||
"glsl-noise": "0.0.0", | ||
"glslify": "^4.0.0", | ||
"load-bmfont": "^1.0.0", | ||
"standard": "^5.4.1", | ||
"sun-tzu-quotes": "^1.0.0", | ||
"three": "^0.70.0", | ||
"three-orbit-viewer": "^69.2.9", | ||
"three-vignette-background": "^1.0.2", | ||
"uglify-js": "^2.4.17" | ||
}, | ||
"scripts": { | ||
"build": "browserify test/test-3d.js | uglifyjs -cm > test/bundle.js", | ||
"start": "budo test/test-line.js:bundle.js --dir test --live", | ||
"build": "browserify test/test-shader.js -t glslify | uglifyjs -cm > test/bundle.js", | ||
"start": "budo test/test-shader.js:bundle.js --dir test --live -- -t glslify", | ||
"test-2d": "budo test/test-2d.js:bundle.js --dir test --live", | ||
@@ -39,0 +45,0 @@ "test-3d": "budo test/test-3d.js:bundle.js --dir test --live", |
@@ -5,5 +5,5 @@ # three-bmfont-text | ||
[![screenshot](http://i.imgur.com/fJEeuPs.png)](https://jam3.github.io/three-bmfont-text/test) | ||
[<img src="http://i.imgur.com/3Tswdau.png" width="65%" />](https://jam3.github.io/three-bmfont-text/test) | ||
[(click for demo)](https://jam3.github.io/three-bmfont-text/test) - [(source)](test/test-3d.js) | ||
[(click for demo)](https://jam3.github.io/three-bmfont-text/test) - [(source)](test/test-shader.js) | ||
@@ -120,5 +120,13 @@ Bitmap font rendering for ThreeJS, batching glyphs into a single BufferGeometry. Supports word-wrapping, letter spacing, kerning, signed distance fields with standard derivatives, multi-texture fonts, and more. About 12kb after minification. | ||
```sh | ||
# 3D SDF rendering | ||
npm run test-3d | ||
# 2d bitmap rendering | ||
npm run test-2d | ||
# multi-page rendering | ||
npm run test-multi | ||
# custom text shaders | ||
npm run start | ||
``` | ||
@@ -161,2 +169,5 @@ | ||
- SDF shader `smooth` option has been removed for less API surface area | ||
- Added `precision` option to built-in shaders | ||
- default `alphaTest` for SDF has changed to 0.0001 | ||
- Multipage shader also includes `alphaTest` now | ||
- `1.x` | ||
@@ -163,0 +174,0 @@ - uses `ShaderMaterial`, only really supports r69 |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
19791
177
0
14