Grunk nodules are nastier
Some checks failed
linting & formatting / build (push) Failing after 5s

This commit is contained in:
Rob Kelly 2025-03-13 12:37:33 -06:00
parent 710d0bf191
commit e2c95766c2
2 changed files with 6 additions and 4 deletions

View File

@ -20,6 +20,8 @@ curve = SubResource("Curve_y6klh")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_5xu2x"] [sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_5xu2x"]
lifetime_randomness = 0.57 lifetime_randomness = 0.57
emission_shape = 1
emission_sphere_radius = 1.0
angle_min = 1.07288e-05 angle_min = 1.07288e-05
angle_max = 360.0 angle_max = 360.0
direction = Vector3(0, 0, 0) direction = Vector3(0, 0, 0)
@ -90,7 +92,7 @@ size = Vector2(2, 2)
[node name="GrunkSplatter" type="GPUParticles3D"] [node name="GrunkSplatter" type="GPUParticles3D"]
sorting_offset = 9.0 sorting_offset = 9.0
amount = 32 amount = 64
lifetime = 0.3 lifetime = 0.3
explosiveness = 0.45 explosiveness = 0.45
process_material = SubResource("ParticleProcessMaterial_5xu2x") process_material = SubResource("ParticleProcessMaterial_5xu2x")

View File

@ -1,6 +1,6 @@
extends GunkNode extends GunkNode
@export var jitter_scale_factor := 0.02 @export var jitter_scale_factor := 0.05
@export var jitter_inflation_factor := 1.0 @export var jitter_inflation_factor := 1.0
@export var splatter_scene: PackedScene @export var splatter_scene: PackedScene
@ -12,8 +12,8 @@ func _process(delta: float) -> void:
super._process(delta) super._process(delta)
var shader: ShaderMaterial = mesh_instance.mesh.surface_get_material(0) var shader: ShaderMaterial = mesh_instance.mesh.surface_get_material(0)
var value := _sustained_damage / durability var value := _sustained_damage / durability
shader.set_shader_parameter("jitter_time_scale", value * jitter_scale_factor) shader.set_shader_parameter("jitter_time_scale", pow(value * jitter_scale_factor, 1.2))
shader.set_shader_parameter("vertex_inflation", value * jitter_inflation_factor) shader.set_shader_parameter("vertex_inflation", pow(value * jitter_inflation_factor, 3))
func _destroy() -> void: func _destroy() -> void: