diff --git a/CHANGELOG.md b/CHANGELOG.md index 85f5238..3fa368f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# v0.14.0-dev + +- Add sparkles to Jupiter's ring ✨😍✨ best visible from Farview Station + # v0.13.0 - Reduce power usage when the menu is open or the window is unfocused diff --git a/assets/shaders/jupiters_rings.wgsl b/assets/shaders/jupiters_rings.wgsl index d16969f..fb035dc 100644 --- a/assets/shaders/jupiters_rings.wgsl +++ b/assets/shaders/jupiters_rings.wgsl @@ -14,9 +14,9 @@ fn smooth_edge(start: f32, end: f32, value: f32) -> f32 { return 4 * x * x * (1 - x * x); } -//fn rand(co: vec2) -> f32 { - //return fract(sin(dot(co, vec2(12.9898, 78.233))) * 43758.5453); -//} +fn rand(co: vec2) -> f32 { + return fract(sin(dot(co, vec2(12.9898, 78.233))) * 43758.5453); +} //const PHI: f32 = 1.61803398874989484820459; //fn gold_noise(xy: vec2, seed: f32) -> f32 { @@ -95,8 +95,8 @@ fn fragment(in: VertexOutput) -> @location(0) vec4 { //if (sin(in.uv[0] * 1000.0) + cos(in.uv[1] * 10412.0) > 1.999) { //if (sin(in.uv[0] * 10000.0 + in.uv[1] * 5132.0) + cos(in.uv[0] * 12399.0 + in.uv[1] * 10412.0) > 1.999) { //if (sin(sin(in.uv[0] * 10000000.0) * 412.0 + cos(in.uv[1] * 11132000.0) * 12.0) + cos(sin(in.uv[0] * 12309900.0) * 93.0 + sin(in.uv[1] * 10410200.0) * 115.0) > 1.999) { - //if (rand(in.uv) + rand(vec2(in.uv[1]*10.0, in.uv[0]*10.0)) > 1.997) { - //alpha *= 200.0; - //} + if (rand(in.uv) + rand(vec2(in.uv[1]*10.0, in.uv[0]*10.0)) > 1.997) { + alpha *= 200.0; + } return vec4(color, alpha); }