Skip to content

Commit

Permalink
Improve particles and VFX, add blob shadow below player and enemies
Browse files Browse the repository at this point in the history
- Add projector light textures.
- Tweak the flying forklift's dynamic light and particles to be more noticeable.
- Add bullet impact particles with collision against level geometry
  (using a generated SDF).
- Don't use fixed FPS and disable interpolation to make particles smoother
  (trails aren't used, so fixed FPS isn't strictly needed).
- Add proximity fade to some particles to smooth out the transition
  with solid geometry.
- Fix some particles being shaded when they should be unshaded.
- Reduce crosshair size to be more subtle while aiming.
  • Loading branch information
Calinou committed Nov 30, 2023
1 parent 9024e4c commit be3eac1
Show file tree
Hide file tree
Showing 20 changed files with 10,310 additions and 412 deletions.
12 changes: 12 additions & 0 deletions effects_shared/blob_shadow.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[gd_resource type="GradientTexture2D" load_steps=2 format=3 uid="uid://8d78kbpqjumj"]

[sub_resource type="Gradient" id="Gradient_m6m55"]
interpolation_mode = 2
offsets = PackedFloat32Array(0, 0.2, 1)
colors = PackedColorArray(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0)

[resource]
gradient = SubResource("Gradient_m6m55")
fill = 1
fill_from = Vector2(0.5, 0.5)
fill_to = Vector2(0.5, 0.01)
Binary file added effects_shared/spotlight_projector.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions effects_shared/spotlight_projector.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://biye81cs18sdp"
path="res://.godot/imported/spotlight_projector.png-df51635ec657a5f50f175250c2209b0c.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://effects_shared/spotlight_projector.png"
dest_files=["res://.godot/imported/spotlight_projector.png-df51635ec657a5f50f175250c2209b0c.ctex"]

[params]

compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Binary file modified enemies/red_robot/laser/BarrelSmoke_Plane.mesh
Binary file not shown.
5 changes: 1 addition & 4 deletions enemies/red_robot/parts/sparks_effect/SparkMaterial.tres
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
[gd_resource type="ShaderMaterial" load_steps=3 format=3 uid="uid://b0yi1uf4xb6ex"]
[gd_resource type="ShaderMaterial" load_steps=2 format=3 uid="uid://b0yi1uf4xb6ex"]

[ext_resource type="Texture2D" uid="uid://ic4gy2igsmd4" path="res://enemies/red_robot/parts/sparks_effect/SparkTexture.png" id="1"]
[ext_resource type="Shader" path="res://enemies/red_robot/parts/sparks_effect/SparkShader.gdshader" id="2"]

[resource]
render_priority = 0
shader = ExtResource("2")
shader_parameter/emission_factor = 3.0
shader_parameter/alpha_texture = ExtResource("1")
Binary file modified enemies/red_robot/parts/sparks_effect/SparkParticle_Sphere.mesh
Binary file not shown.
Loading

0 comments on commit be3eac1

Please sign in to comment.