mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fixed fall rate
This commit is contained in:
parent
32fe997506
commit
23aea72466
@ -101,7 +101,7 @@ void main() {
|
||||
rpos = rorigin + adjusted_dir * t;
|
||||
|
||||
vec2 diff = abs(round(rpos.xy) - rpos.xy);
|
||||
vec3 wall_pos = vec3((diff.x > diff.y) ? rpos.xy : rpos.yx, rpos.z + integrated_rain_vel * 0.5);
|
||||
vec3 wall_pos = vec3((diff.x > diff.y) ? rpos.xy : rpos.yx, rpos.z + integrated_rain_vel);
|
||||
wall_pos.xz *= vec2(4, 0.3);
|
||||
wall_pos.z += hash(fract(vec4(floor(wall_pos.xy + vec2(0, 0.5)), 1000, 0) * 0.1));
|
||||
if (abs(hash(vec4(floor(wall_pos.xyz), 0))) > rain_density) {
|
||||
|
@ -42,7 +42,7 @@ impl Weather {
|
||||
|
||||
// Get the rain velocity for this weather
|
||||
pub fn rain_vel(&self) -> Vec3<f32> {
|
||||
const FALL_RATE: f32 = 50.0;
|
||||
const FALL_RATE: f32 = 30.0;
|
||||
Vec3::new(self.wind.x, self.wind.y, -FALL_RATE)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user