Skip to content

Commit

Permalink
Fix turbulence color (#56)
Browse files Browse the repository at this point in the history
* Fixed output to be back in turbulence.main

* 0.14.2
  • Loading branch information
ydaniv authored Dec 15, 2024
1 parent 0df52a1 commit e0861a4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kampos",
"version": "0.14.1",
"version": "0.14.2",
"description": "Tiny and fast effects compositor on WebGL",
"registry": "https://registry.npmjs.org/",
"main": "dist/index.cjs",
Expand Down
5 changes: 3 additions & 2 deletions src/effects/turbulence.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ float turbulence (vec3 seed, vec2 frequency, int numOctaves, bool isFractal) {
}`,
source: `
vec3 turbulenceSeed = vec3(gl_FragCoord.xy, u_time * 0.0001);
float turbulenceValue = turbulence(turbulenceSeed, u_turbulenceFrequency, u_turbulenceOctaves, u_isFractal);
${output || ''}`,
float turbulenceValue = turbulence(turbulenceSeed, u_turbulenceFrequency, u_turbulenceOctaves, u_isFractal);`,
main: `
${output || ''}`
},
get frequency() {
const [x, y] = this.uniforms[0].data;
Expand Down

0 comments on commit e0861a4

Please sign in to comment.