Skip to content

Commit

Permalink
SlitScan add missing time setter (#51)
Browse files Browse the repository at this point in the history
* Added missing time setter for slitScan effect

* 0.11.7

* Bumped deps
  • Loading branch information
ydaniv authored Dec 2, 2024
1 parent ce8e368 commit 8ab49de
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 10 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
### 0.11.7 (2024-12-02)

_Fixed:_

- Fixed `slitScan` effect, added missing setter for the `time` uniform.

### 0.11.6 (2024-12-02)

_New:_
Expand Down
6 changes: 6 additions & 0 deletions dist/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -1371,6 +1371,12 @@ function slitScan ({
set frequency(f) {
this.uniforms[2].data[0] = f;
},
get time() {
return this.uniforms[3].data[0];
},
set time(t) {
this.uniforms[3].data[0] = t;
},
uniforms: [
{
name: 'u_slitScanEnabled',
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset='utf-8'>
<title>kampos 0.11.5 | Documentation</title>
<title>kampos 0.11.6 | Documentation</title>
<meta name='description' content='Tiny and fast effects compositor on WebGL'>
<meta name='viewport' content='width=device-width,initial-scale=1'>
<link href='assets/bass.css' rel='stylesheet'>
Expand All @@ -15,7 +15,7 @@
<div id='split-left' class='overflow-auto fs0 height-viewport-100'>
<div class='py1 px2'>
<h3 class='mb0 no-anchor'>kampos</h3>
<div class='mb1'><code>0.11.5</code></div>
<div class='mb1'><code>0.11.6</code></div>
<input
placeholder='Filter'
id='filter-input'
Expand Down
6 changes: 6 additions & 0 deletions index.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -1375,6 +1375,12 @@ const mat3 satmat = mat3(
set frequency(f) {
this.uniforms[2].data[0] = f;
},
get time() {
return this.uniforms[3].data[0];
},
set time(t) {
this.uniforms[3].data[0] = t;
},
uniforms: [
{
name: 'u_slitScanEnabled',
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kampos",
"version": "0.11.6",
"version": "0.11.7",
"description": "Tiny and fast effects compositor on WebGL",
"registry": "https://registry.npmjs.org/",
"main": "dist/index.cjs",
Expand Down Expand Up @@ -40,10 +40,10 @@
},
"homepage": "https://wix-incubator.github.io/kampos/",
"devDependencies": {
"@babel/core": "^7.24.7",
"concurrently": "^8.2.2",
"@babel/core": "^7.26.0",
"concurrently": "^9.1.0",
"documentation": "^14.0.3",
"finalhandler": "^1.2.0",
"finalhandler": "^1.3.1",
"get-port": "^7.1.0",
"gl": "^6.0.2",
"http-server": "^14.1.1",
Expand All @@ -52,12 +52,12 @@
"pify": "^6.1.0",
"pixelmatch": "^6.0.0",
"pngjs": "^7.0.0",
"puppeteer": "^23.0.2",
"rollup": "^4.18.0",
"puppeteer": "^23.9.0",
"rollup": "^4.28.0",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-filesize": "^10.0.0",
"rollup-plugin-progress": "^1.1.2",
"serve-static": "^1.15.0",
"vitest": "^2.0.2"
"serve-static": "^1.16.2",
"vitest": "^2.1.7"
}
}
6 changes: 6 additions & 0 deletions src/effects/slit-scan.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ export default function ({
set frequency(f) {
this.uniforms[2].data[0] = f;
},
get time() {
return this.uniforms[3].data[0];
},
set time(t) {
this.uniforms[3].data[0] = t;
},
uniforms: [
{
name: 'u_slitScanEnabled',
Expand Down

0 comments on commit 8ab49de

Please sign in to comment.