troika-three-text
Advanced tools
Comparing version 0.45.0 to 0.45.1
@@ -6,2 +6,13 @@ # Change Log | ||
## [0.45.1](https://github.com/protectwise/troika/compare/v0.45.0...v0.45.1) (2022-03-06) | ||
### Bug Fixes | ||
* **troika-three-text:** fix SDF texture resizing in Three r136+ ([7c26687](https://github.com/protectwise/troika/commit/7c2668773535ea22b842245c81d2c0c4fb8abfa9)) | ||
# [0.45.0](https://github.com/protectwise/troika/compare/v0.44.0...v0.45.0) (2022-01-02) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "troika-three-text", | ||
"version": "0.45.0", | ||
"version": "0.45.1", | ||
"description": "SDF-based text rendering for Three.js", | ||
@@ -35,3 +35,3 @@ "author": "Jason Johnston <jason.johnston@protectwise.com>", | ||
}, | ||
"gitHead": "a1ab2b36832518827f444a8654053a4b0d5d95d7" | ||
"gitHead": "21a76788f6de1176cb971e695995dbda4bc8e73b" | ||
} |
@@ -250,2 +250,4 @@ import { Color, DataTexture, LinearFilter, RGBAFormat } from 'three' | ||
texImg.height *= 2 | ||
// As of Three r136 textures cannot be resized; dispose so it gets reallocated on the GPU at the new size | ||
atlas.sdfTexture.dispose() | ||
} | ||
@@ -252,0 +254,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
722066
10291