three-bmfont-text
Advanced tools
Comparing version 2.2.1 to 2.3.0
{ | ||
"name": "three-bmfont-text", | ||
"version": "2.2.1", | ||
"version": "2.3.0", | ||
"description": "renders BMFont files in ThreeJS with word-wrapping", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -10,2 +10,3 @@ var assign = require('object-assign'); | ||
var map = opt.map; | ||
var negate = typeof opt.negate === 'boolean' ? opt.negate : true; | ||
@@ -17,2 +18,3 @@ // remove to satisfy r73 | ||
delete opt.opacity; | ||
delete opt.negate; | ||
@@ -51,3 +53,3 @@ return assign({ | ||
'void main() {', | ||
' vec3 sample = 1.0 - texture2D(map, vUv).rgb;', | ||
' vec3 sample = ' + (negate ? '1.0 - ' : '') + 'texture2D(map, vUv).rgb;', | ||
' float sigDist = median(sample.r, sample.g, sample.b) - 0.5;', | ||
@@ -54,0 +56,0 @@ ' float alpha = clamp(sigDist/fwidth(sigDist) + 0.5, 0.0, 1.0);', |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23556
438