{"versions":{"1.0.3":{"name":"glsl-blend-soft-light","version":"1.0.3","description":"blend mode 'overlay' for GLSL","main":"index.js","license":"MIT","scripts":{"start":"wzrd demo.js:bundle.js -- -t glslify","test":"browserify test.js -t glslify | tap-closer | smokestack | tap-spec","bundle":"browserify demo.js -t glslify | uglifyjs -cm > bundle.js"},"author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"http://github.com/mattdesl"},"dependencies":{"gl-blend-demo":"^1.0.0"},"devDependencies":{"browserify":"^8.1.1","domready":"^1.0.7","gl-shader-output":"^1.0.2","glslify":"^1.6.0","smokestack":"^3.2.0","tap-closer":"^1.0.0","tap-spec":"^2.2.0","tape":"^3.4.0","test-fuzzy-array":"^1.0.1","uglify-js":"^2.4.16","wzrd":"^1.2.1"},"repository":{"type":"git","url":"git://github.com/Jam3/glsl-blend-soft-light.git"},"keywords":["ecosystem:stackgl","blend","blend mode","mode","glsl","glslify","stackgl"],"homepage":"https://github.com/Jam3/glsl-blend-soft-light","bugs":{"url":"https://github.com/Jam3/glsl-blend-soft-light/issues"},"gitHead":"d37d5736bd29f5547694e083d6ac0e79d6acf4a6","_id":"glsl-blend-soft-light@1.0.3","_shasum":"476573e08096df7b20fd4ac30ddde48579516a48","_from":".","_npmVersion":"2.2.0","_nodeVersion":"0.10.35","_npmUser":{"name":"anonymous","email":"dave.des@gmail.com"},"maintainers":[{"name":"anonymous","email":"dave.des@gmail.com"}],"dist":{"shasum":"476573e08096df7b20fd4ac30ddde48579516a48","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/glsl-blend-soft-light/-/glsl-blend-soft-light-1.0.3.tgz","size":2255,"integrity":"sha512-+P/QTGY/g7Rl1llSYKbUB/wB/cWCqpRR3q0W7jMlA2BebzELo7GBXV6mTYBNliet++1Q+OJMeqI0UPcDlQ+/Ng=="},"directories":{},"_cnpmcore_publish_time":"2021-12-23T11:17:47.810Z","contributors":[]},"1.0.4":{"name":"glsl-blend-soft-light","version":"1.0.4","description":"blend mode 'overlay' for GLSL","main":"index.js","license":"MIT","scripts":{"start":"wzrd demo.js:bundle.js -- -t glslify","test":"browserify test.js -t glslify | tap-closer | smokestack | tap-spec","bundle":"browserify demo.js -t glslify | uglifyjs -cm > bundle.js"},"author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"http://github.com/mattdesl"},"dependencies":{},"devDependencies":{"gl-blend-demo":"^1.0.0","browserify":"^8.1.1","domready":"^1.0.7","gl-shader-output":"^1.0.2","glslify":"^1.6.0","smokestack":"^3.2.0","tap-closer":"^1.0.0","tap-spec":"^2.2.0","tape":"^3.4.0","test-fuzzy-array":"^1.0.1","uglify-js":"^2.4.16","wzrd":"^1.2.1"},"repository":{"type":"git","url":"git://github.com/Jam3/glsl-blend-soft-light.git"},"keywords":["ecosystem:stackgl","blend","blend mode","mode","glsl","glslify","stackgl"],"homepage":"https://github.com/Jam3/glsl-blend-soft-light","bugs":{"url":"https://github.com/Jam3/glsl-blend-soft-light/issues"},"gitHead":"b3eeb0bfca0c0d4a4dbedc06a2828438dca1f765","_id":"glsl-blend-soft-light@1.0.4","_shasum":"e64894a0004f0ff0143c5fcc9e361011eef33a54","_from":".","_npmVersion":"2.2.0","_nodeVersion":"0.10.35","_npmUser":{"name":"anonymous","email":"dave.des@gmail.com"},"maintainers":[{"name":"anonymous","email":"dave.des@gmail.com"}],"dist":{"shasum":"e64894a0004f0ff0143c5fcc9e361011eef33a54","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/glsl-blend-soft-light/-/glsl-blend-soft-light-1.0.4.tgz","size":2257,"integrity":"sha512-tLLN0WLB6ASjz18FhM4lqMJdInFIsxNe0UVWIa1J1esSfl1mqzJArilNegcFaI6ovBhm6F7Y9j1ND74Ti4/2QA=="},"directories":{},"_cnpmcore_publish_time":"2021-12-23T11:17:48.684Z","contributors":[]},"1.0.5":{"name":"glsl-blend-soft-light","version":"1.0.5","description":"blend mode 'overlay' for GLSL","main":"index.js","license":"MIT","scripts":{"start":"wzrd demo.js:bundle.js -- -t glslify","test":"browserify test.js -t glslify | tap-closer | smokestack | tap-spec","bundle":"browserify demo.js -t glslify | uglifyjs -cm > bundle.js"},"author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"http://github.com/mattdesl"},"dependencies":{},"devDependencies":{"gl-blend-demo":"^1.0.0","browserify":"^8.1.1","domready":"^1.0.7","gl-shader-output":"^1.0.2","glslify":"^1.6.0","smokestack":"^3.2.0","tap-closer":"^1.0.0","tap-spec":"^2.2.0","tape":"^3.4.0","test-fuzzy-array":"^1.0.1","uglify-js":"^2.4.16","wzrd":"^1.2.1"},"repository":{"type":"git","url":"git://github.com/mattdesl/glsl-blend-soft-light.git"},"keywords":["ecosystem:stackgl","blend","blend mode","mode","glsl","glslify","stackgl"],"homepage":"https://github.com/mattdesl/glsl-blend-soft-light","bugs":{"url":"https://github.com/mattdesl/glsl-blend-soft-light/issues"},"gitHead":"fb229db060063fe2a1b298a102930e527704877b","_id":"glsl-blend-soft-light@1.0.5","_shasum":"f5306c622599ee8e7a4fb248795434893cd6c25b","_from":".","_npmVersion":"2.2.0","_nodeVersion":"0.10.35","_npmUser":{"name":"anonymous","email":"dave.des@gmail.com"},"maintainers":[{"name":"anonymous","email":"dave.des@gmail.com"}],"dist":{"shasum":"f5306c622599ee8e7a4fb248795434893cd6c25b","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/glsl-blend-soft-light/-/glsl-blend-soft-light-1.0.5.tgz","size":2253,"integrity":"sha512-p/XCcc/EYpG+lXHyV4JCiRucCQDiTbqIBrWs/jB5SEUD7MgGgCtcWQKg/Yea9fmKCMEiqLKer1fm2A0RYVeo3A=="},"directories":{},"_cnpmcore_publish_time":"2021-12-23T11:17:48.772Z","contributors":[]}},"dist-tags":{"latest":"1.0.5"},"name":"glsl-blend-soft-light","time":{"created":"2022-01-27T02:28:18.385Z","modified":"2022-01-27T02:28:18.385Z","1.0.3":"2015-01-26T00:44:42.372Z","1.0.4":"2015-01-26T00:47:05.861Z","1.0.5":"2015-01-26T19:52:05.199Z"},"readme":"# glsl-blend-soft-light\n\n[![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)\n\n[(click for demo)](http://mattdesl.github.io/glsl-blend-soft-light/)\n\nPhotoshop-like \"soft light\" blend mode for GLSL.\n\n```glsl\n#pragma glslify: blend = require(../)\n\nvoid main() {\n  vec4 bgColor = texture2D(bg, vUv);\n  vec4 fgColor = texture2D(foreground, vUv);\n\n  vec3 color = blend(bgColor.rgb, fgColor.rgb);\n  gl_FragColor = vec4(color, 1.0);\n}\n```\n\n## Usage\n\n[![NPM](https://nodei.co/npm/glsl-blend-soft-light.png)](https://nodei.co/npm/glsl-blend-soft-light/)\n\n#### `blend(vec3 base, vec3 blend)`\n\nBlends background and foreground with an \"soft light\" blend mode. The algorithm for each channel is as follows:\n\n```\n(blend < 0.5) ? (2.0 * base * blend + base * base * (1.0 - 2.0 * blend)) : (sqrt(base) * (2.0 * blend - 1.0) + 2.0 * base * (1.0 - blend))\n```\n\n## Contributing\n\nSee [stackgl/contributing](https://github.com/stackgl/contributing).\n\n## License\n\nMIT. See [LICENSE.md](http://github.com/mattdesl/glsl-blend-soft-light/blob/master/LICENSE.md) for details.","users":{}}