cleanup
This commit is contained in:
parent
123038b864
commit
ff363d03ef
|
@ -13,7 +13,7 @@ fn smooth_edge(start: f32, end: f32, value: f32) -> f32 {
|
|||
return 4 * x * x * (1 - x * x);
|
||||
}
|
||||
|
||||
fn ring_density2(radius: f32) -> f32 {
|
||||
fn ring_density(radius: f32) -> f32 {
|
||||
let halo_inner: f32 = 92.0;
|
||||
let halo_outer: f32 = 122.5;
|
||||
let main_inner: f32 = 122.5;
|
||||
|
@ -63,7 +63,7 @@ fn fragment(in: VertexOutput) -> @location(0) vec4<f32> {
|
|||
let r_uv = 2 * distance(in.uv, vec2<f32>(0.5));
|
||||
let r = r_uv * ring_radius / jupiter_radius * jupiter_radius_Mm;
|
||||
|
||||
alpha *= ring_density2(r);
|
||||
alpha *= ring_density(r);
|
||||
if alpha <= 0.0 {
|
||||
return vec4<f32>(color, alpha);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue