Skip to content

Commit

Permalink
Update darkclouds.wgsl
Browse files Browse the repository at this point in the history
  • Loading branch information
altunenes authored Mar 30, 2024
1 parent b8ddad4 commit f75adcc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shaders/darkclouds.wgsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//adapted: https://twigl.app/?ol=true&ss=-NNIajM4aEzy75lqtAUd
const PI: f32 = 3.141592653589793;
struct TimeUniform {
time: f32,
Expand Down Expand Up @@ -81,4 +82,4 @@ for (var j: i32 = 0; j < 45; j = j + 1) {
col = (vec3<f32>(0.5, 0.0, 2.1) * colorOffset + flowColorChange + 4.5 * flowIntensity) *
((0.5 * N.x * 0.5 * N.y) + .0015 / length(1.0 * N));
return vec4<f32>(col, 1.0);
}
}

0 comments on commit f75adcc

Please sign in to comment.