temporarily disable sparkles (not quite rdy for release)

This commit is contained in:
yuni 2024-10-12 03:00:23 +02:00
parent 7a358537ab
commit ef2967b2db
2 changed files with 6 additions and 7 deletions

View file

@ -2,7 +2,6 @@
- Reduce power usage when the menu is open or the window is unfocused
- Add texture to space suit: White, with a hexagonal pattern
- Add sparkles to Jupiter's ring ✨😍✨ best visible from Farview Station
- Add oxygen tank near Luna's workshop, refills oxygen on interaction
- Add new avatars for Augmented Reality: Cat Ears, Skirt
- Add The Moon™

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);
}