tweak ring appearance & player location

This commit is contained in:
yuni 2024-04-05 00:23:01 +02:00
parent 5f7a727f7e
commit 720b39e09a
2 changed files with 3 additions and 2 deletions

View file

@ -65,8 +65,9 @@ fn fragment(in: VertexOutput) -> @location(0) vec4<f32> {
let r = r_uv * ring_radius / jupiter_radius * jupiter_radius_Mm;
alpha *= ring_density(r);
alpha -= 0.001;
if alpha <= 0.0 {
return vec4<f32>(color, alpha);
return vec4<f32>(color, 0.0);
}
if in.uv[0] < 0.5 {

View file

@ -9,7 +9,7 @@ actor 0 0 0 jupiter
actor 0 593051 0 suit
relativeto jupiter
orbit 220800e3 0.66
orbit 226000e3 0.66
player yes
id player
mass 200.0