fix clouds
This commit is contained in:
@@ -11,8 +11,8 @@ extends Node3D
|
||||
|
||||
@export_group("Snow")
|
||||
@export var snow_amount: int = 2000
|
||||
@export var snow_area: Vector3 = Vector3(80.0, 30.0, 80.0)
|
||||
@export var snow_speed: float = 3.0
|
||||
@export var snow_area: Vector3 = Vector3(80.0, 12.0, 80.0)
|
||||
@export var snow_speed: float = 4.0
|
||||
@export var snow_color: Color = Color(0.95, 0.95, 1.0, 0.8)
|
||||
|
||||
@export_group("Lightning")
|
||||
@@ -159,7 +159,7 @@ func _create_snow_system() -> void:
|
||||
_snow_particles = GPUParticles3D.new()
|
||||
_snow_particles.name = "SnowParticles"
|
||||
_snow_particles.amount = snow_amount
|
||||
_snow_particles.lifetime = snow_area.y / snow_speed * 2.5
|
||||
_snow_particles.lifetime = snow_area.y / snow_speed * 2.0
|
||||
_snow_particles.emitting = false
|
||||
_snow_particles.visibility_aabb = AABB(-snow_area / 2.0, snow_area)
|
||||
|
||||
@@ -168,11 +168,11 @@ func _create_snow_system() -> void:
|
||||
mat.spread = 15.0
|
||||
mat.initial_velocity_min = snow_speed * 0.5
|
||||
mat.initial_velocity_max = snow_speed * 1.0
|
||||
mat.gravity = Vector3(0.0, -1.0, 0.0)
|
||||
mat.gravity = Vector3(0.0, -3, 0.0)
|
||||
mat.emission_shape = ParticleProcessMaterial.EMISSION_SHAPE_BOX
|
||||
mat.emission_box_extents = Vector3(snow_area.x / 2.0, 0.5, snow_area.z / 2.0)
|
||||
mat.emission_box_extents = Vector3(snow_area.x / 2.0, 1.0, snow_area.z / 2.0)
|
||||
mat.turbulence_enabled = true
|
||||
mat.turbulence_noise_strength = 2.0
|
||||
mat.turbulence_noise_strength = 1.5
|
||||
mat.turbulence_noise_speed_random = 0.5
|
||||
mat.turbulence_noise_scale = 4.0
|
||||
_snow_particles.process_material = mat
|
||||
@@ -184,7 +184,7 @@ func _create_snow_system() -> void:
|
||||
_snow_material.set_shader_parameter("alpha_mult", 0.0)
|
||||
|
||||
var mesh := QuadMesh.new()
|
||||
mesh.size = Vector2(0.08, 0.08)
|
||||
mesh.size = Vector2(0.12, 0.12)
|
||||
mesh.material = _snow_material
|
||||
_snow_particles.draw_pass_1 = mesh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user