Skip to content

Commit

Permalink
Add Radioactive Rock Chunk model (#5862)
Browse files Browse the repository at this point in the history
* Add Radioactive Rock Chunk

* Allowed godot to add this one resource ID
  • Loading branch information
HexapodPhilosopher authored Jan 29, 2025
1 parent 07d0f4d commit 67c3216
Show file tree
Hide file tree
Showing 10 changed files with 163 additions and 21 deletions.
3 changes: 3 additions & 0 deletions assets/models/RadioactiveChunk1.mesh
Git LFS file not shown
4 changes: 2 additions & 2 deletions assets/models/RadioactiveChunk1.shape
Git LFS file not shown
37 changes: 18 additions & 19 deletions assets/models/RadioactiveChunk1.tscn
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
[gd_scene load_steps=8 format=3 uid="uid://cir6mvjcstfcg"]
[gd_scene load_steps=7 format=3 uid="uid://oq2aawq8xamx"]

[ext_resource type="Shader" path="res://shaders/IronChunk.gdshader" id="1_5y88p"]
[ext_resource type="ArrayMesh" uid="uid://dp1kurbdnrb4n" path="res://assets/models/IronRockSmall2.mesh" id="2_dwirw"]
[ext_resource type="Texture2D" uid="uid://cynylcx1824be" path="res://assets/textures/IronChunk_Depleted.png" id="2_lyqbw"]
[ext_resource type="Texture2D" uid="uid://baxuoyeo83r2u" path="res://assets/textures/dissolve_noise.tres" id="3_x56sj"]
[ext_resource type="Texture2D" uid="uid://cyeu1ujr54dub" path="res://assets/textures/Hydrogenase.png" id="4_tqnvy"]
[ext_resource type="Texture2D" uid="uid://c4lakneio0v00" path="res://assets/textures/IronChunk_normal.png" id="5_ly3pt"]
[ext_resource type="Shader" path="res://shaders/IronChunk.gdshader" id="1_v5a2o"]
[ext_resource type="Texture2D" uid="uid://chqec76b7yinx" path="res://assets/textures/RadioactiveChunk1_normal.png" id="2_bg0yx"]
[ext_resource type="Texture2D" uid="uid://baxuoyeo83r2u" path="res://assets/textures/dissolve_noise.tres" id="3_2gpaa"]
[ext_resource type="Texture2D" uid="uid://cc0fmdpdq5sob" path="res://assets/textures/RadioactiveChunk1.png" id="4_14ku5"]
[ext_resource type="ArrayMesh" uid="uid://ifcb1d7sv4x0" path="res://assets/models/RadioactiveChunk1.mesh" id="6_pkbv3"]

[sub_resource type="ShaderMaterial" id="ShaderMaterial_0pgl7"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_rmgh8"]
resource_local_to_scene = true
render_priority = 0
shader = ExtResource("1_5y88p")
shader = ExtResource("1_v5a2o")
shader_parameter/roughness = 0.85
shader_parameter/metallicTextureChannel = Vector4(1, 0, 0, 0)
shader_parameter/metallicTextureChannel = Vector4(0, 0, 1, 0)
shader_parameter/depletion = 0.0
shader_parameter/dissolveValue = 0.0
shader_parameter/outlineWidth = 0.0
shader_parameter/growColor = Color(0.321569, 0.180392, 0.101961, 1)
shader_parameter/fullTexture = ExtResource("4_tqnvy")
shader_parameter/depletedTexture = ExtResource("2_lyqbw")
shader_parameter/normalTexture = ExtResource("5_ly3pt")
shader_parameter/dissolveTexture = ExtResource("3_x56sj")
shader_parameter/outlineWidth = 0.1
shader_parameter/growColor = Color(0, 0, 0, 1)
shader_parameter/fullTexture = ExtResource("4_14ku5")
shader_parameter/depletedTexture = ExtResource("4_14ku5")
shader_parameter/normalTexture = ExtResource("2_bg0yx")
shader_parameter/dissolveTexture = ExtResource("3_2gpaa")

[node name="RadioActiveChunk" type="MeshInstance3D"]
material_override = SubResource("ShaderMaterial_0pgl7")
mesh = ExtResource("2_dwirw")
[node name="RadioactiveChunk" type="MeshInstance3D"]
material_override = SubResource("ShaderMaterial_rmgh8")
mesh = ExtResource("6_pkbv3")
3 changes: 3 additions & 0 deletions assets/textures/RadioactiveChunk1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions assets/textures/RadioactiveChunk1.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://cc0fmdpdq5sob"
path.s3tc="res://.godot/imported/RadioactiveChunk1.png-18c613f3f4eaa84250d10c639ab90195.s3tc.ctex"
path.etc2="res://.godot/imported/RadioactiveChunk1.png-18c613f3f4eaa84250d10c639ab90195.etc2.ctex"
metadata={
"imported_formats": ["s3tc_bptc", "etc2_astc"],
"vram_texture": true
}

[deps]

source_file="res://assets/textures/RadioactiveChunk1.png"
dest_files=["res://.godot/imported/RadioactiveChunk1.png-18c613f3f4eaa84250d10c639ab90195.s3tc.ctex", "res://.godot/imported/RadioactiveChunk1.png-18c613f3f4eaa84250d10c639ab90195.etc2.ctex"]

[params]

compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
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=0
3 changes: 3 additions & 0 deletions assets/textures/RadioactiveChunk1_emission.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions assets/textures/RadioactiveChunk1_emission.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://bd0wg67rat6fh"
path.s3tc="res://.godot/imported/RadioactiveChunk1_emission.png-a50c5bc34d8aa4307e0403ace6360e75.s3tc.ctex"
path.etc2="res://.godot/imported/RadioactiveChunk1_emission.png-a50c5bc34d8aa4307e0403ace6360e75.etc2.ctex"
metadata={
"imported_formats": ["s3tc_bptc", "etc2_astc"],
"vram_texture": true
}

[deps]

source_file="res://assets/textures/RadioactiveChunk1_emission.png"
dest_files=["res://.godot/imported/RadioactiveChunk1_emission.png-a50c5bc34d8aa4307e0403ace6360e75.s3tc.ctex", "res://.godot/imported/RadioactiveChunk1_emission.png-a50c5bc34d8aa4307e0403ace6360e75.etc2.ctex"]

[params]

compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
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=0
3 changes: 3 additions & 0 deletions assets/textures/RadioactiveChunk1_normal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions assets/textures/RadioactiveChunk1_normal.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://chqec76b7yinx"
path.s3tc="res://.godot/imported/RadioactiveChunk1_normal.png-e1743d0f0a9feb6f4b98acc5f2e9c309.s3tc.ctex"
path.etc2="res://.godot/imported/RadioactiveChunk1_normal.png-e1743d0f0a9feb6f4b98acc5f2e9c309.etc2.ctex"
metadata={
"imported_formats": ["s3tc_bptc", "etc2_astc"],
"vram_texture": true
}

[deps]

source_file="res://assets/textures/RadioactiveChunk1_normal.png"
dest_files=["res://.godot/imported/RadioactiveChunk1_normal.png-e1743d0f0a9feb6f4b98acc5f2e9c309.s3tc.ctex", "res://.godot/imported/RadioactiveChunk1_normal.png-e1743d0f0a9feb6f4b98acc5f2e9c309.etc2.ctex"]

[params]

compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=1
compress/channel_pack=0
mipmaps/generate=true
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=0
23 changes: 23 additions & 0 deletions simulation_parameters/microbe_stage/biomes.json
Original file line number Diff line number Diff line change
Expand Up @@ -1942,6 +1942,29 @@
}
}
},
"radioactiveChunk": {
"Name": "RADIOACTIVE_CHUNK",
"Meshes": [
{
"ScenePath": "res://assets/models/RadioactiveChunk1.tscn",
"ConvexShapePath": "res://assets/models/RadioactiveChunk1.shape"
}
],
"Density": 0.0001,
"Dissolves": false,
"Radius": 10,
"ChunkScale": 1,
"PhysicsDensity": 2500,
"Size": 0,
"VentAmount": 0,
"Damages": 0,
"DeleteOnTouch": false,
"Compounds": {
"radiation": {
"Amount": 10000
}
}
},
"googlyEyeCell": {
"Name": "GOOGLY_EYE_CELL",
"Meshes": [
Expand Down

0 comments on commit 67c3216

Please sign in to comment.