Revert "temporarily disable sparkles (not quite rdy for release)"

This reverts commit ef2967b2db.
This commit is contained in:
yuni 2024-10-12 04:16:56 +02:00
parent 5f783d6d16
commit abb900d3f2
2 changed files with 10 additions and 6 deletions

View file

@ -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

View file

@ -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>) -> f32 {
//return fract(sin(dot(co, vec2(12.9898, 78.233))) * 43758.5453);
//}
fn rand(co: vec2<f32>) -> f32 {
return fract(sin(dot(co, vec2(12.9898, 78.233))) * 43758.5453);
}
//const PHI: f32 = 1.61803398874989484820459;
//fn gold_noise(xy: vec2<f32>, seed: f32) -> f32 {
@ -95,8 +95,8 @@ fn fragment(in: VertexOutput) -> @location(0) vec4<f32> {
//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<f32>(color, alpha);
}