fix train
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
[ext_resource type="PackedScene" uid="uid://cv5xmnow451kl" path="res://core/camera.tscn" id="5_8tojn"]
|
||||
[ext_resource type="PackedScene" uid="uid://crlk31ecl480n" path="res://tgcc/chunk/countryside/scene/rice/chunk_country_corner_03.tscn" id="6_21usy"]
|
||||
[ext_resource type="Script" uid="uid://dboerd4a6dwj7" path="res://core/biome_generator/rails.gd" id="6_pypsn"]
|
||||
[ext_resource type="PackedScene" uid="uid://dvk3bytqn3m5s" path="res://tgcc/train/main_train.tscn" id="6_wjpfq"]
|
||||
[ext_resource type="PackedScene" uid="uid://dvk3bytqn3m5s" path="res://tgcc/train/test/Train_test.tscn" id="6_wjpfq"]
|
||||
[ext_resource type="PackedScene" uid="uid://brpp7fe5noq8v" path="res://tgcc/chunk/countryside/scene/rice/chunk_country_cross_3_01.tscn" id="7_qe84w"]
|
||||
[ext_resource type="PackedScene" uid="uid://0kgjaqijaqku" path="res://docs/museums/biome_generator/rails.tscn" id="8_mb5yv"]
|
||||
[ext_resource type="PackedScene" uid="uid://dn1btv0e0ses7" path="res://core/fireworks.tscn" id="8_xtogr"]
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
[ext_resource type="PackedScene" uid="uid://buiqa2mofucer" path="res://tgcc/chunk/countryside/scene/fields/chunk_country_tea_straight_02.tscn" id="61_0p5ag"]
|
||||
[ext_resource type="PackedScene" uid="uid://btwjdnho1cyav" path="res://tgcc/chunk/countryside/scene/fields/chunk_country_tea_straight_03.tscn" id="62_37wx2"]
|
||||
[ext_resource type="PackedScene" uid="uid://cmxsc74ebqnju" path="res://tgcc/chunk/countryside/scene/fields/chunk_country_tea_straight_04.tscn" id="63_kn07i"]
|
||||
[ext_resource type="PackedScene" uid="uid://otptvwer4par" path="res://tgcc/train/main_train2.tscn" id="75_a68wp"]
|
||||
[ext_resource type="PackedScene" uid="uid://otptvwer4par" path="res://tgcc/train/train.tscn" id="75_a68wp"]
|
||||
|
||||
[sub_resource type="FastNoiseLite" id="FastNoiseLite_wjpfq"]
|
||||
fractal_lacunarity = 1.915
|
||||
@@ -221,7 +221,7 @@ directional_shadow_max_distance = 200.0
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 280, 0, 0)
|
||||
|
||||
[node name="rail" type="Path3D" parent="." unique_id=1795138464 node_paths=PackedStringArray("cameras")]
|
||||
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 270, 2, -0.101)
|
||||
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 270, 1.805, -0.101)
|
||||
curve = SubResource("Curve3D_ndco5")
|
||||
script = ExtResource("12_4is5r")
|
||||
train_model = ExtResource("75_a68wp")
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[gd_scene format=3 uid="uid://0kgjaqijaqku"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dtee3qewqnqpm" path="res://tgcc/train/rail.tscn" id="2_u53q0"]
|
||||
[ext_resource type="PackedScene" uid="uid://dtee3qewqnqpm" path="res://tgcc/train/rail/rail.tscn" id="2_u53q0"]
|
||||
|
||||
[node name="rails" type="Node3D" unique_id=1464572050 groups=["weather_node", "wind_node"]]
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
18
tgcc/chunk/material/glass_train.tres
Normal file
18
tgcc/chunk/material/glass_train.tres
Normal file
@@ -0,0 +1,18 @@
|
||||
[gd_resource type="ShaderMaterial" format=3 uid="uid://7eq06nknuhuu"]
|
||||
|
||||
[ext_resource type="Shader" uid="uid://bkjmw2kd8tdys" path="res://tgcc/train/glass_train.gdshader" id="1_hfci0"]
|
||||
|
||||
[resource]
|
||||
render_priority = 0
|
||||
shader = ExtResource("1_hfci0")
|
||||
shader_parameter/colore_vetro = Color(0.4, 0.69803923, 0.9019608, 0.8156863)
|
||||
shader_parameter/colore_bordo = Color(1, 1, 1, 0.8)
|
||||
shader_parameter/spessore_bordo = 2.5
|
||||
shader_parameter/dimensione_riflesso = 0.05
|
||||
shader_parameter/intensita_riflesso = 2.0
|
||||
shader_parameter/usa_strisce = true
|
||||
shader_parameter/colore_strisce = Color(1, 1, 1, 0.3)
|
||||
shader_parameter/densita_strisce = 6.0
|
||||
shader_parameter/spessore_strisce = 0.2
|
||||
shader_parameter/colore_emissivo = Color(0.9796986, 0.48289144, 0.27232447, 1)
|
||||
shader_parameter/intensita_emissiva = 3.9550001878625
|
||||
@@ -5,7 +5,7 @@
|
||||
[resource]
|
||||
render_priority = 0
|
||||
shader = ExtResource("1_346b0")
|
||||
shader_parameter/albedo_color = Color(0.3288632, 0.15632075, 0, 1)
|
||||
shader_parameter/albedo_color = Color(0.35893247, 0.101348855, 0.06084454, 1)
|
||||
shader_parameter/use_texture = true
|
||||
shader_parameter/uv_scale = Vector2(1, 1)
|
||||
shader_parameter/palette_shift_y = 0.0
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
[resource]
|
||||
render_priority = 0
|
||||
shader = ExtResource("1_fgkl2")
|
||||
shader_parameter/albedo_color = Color(0.282108, 0.6064528, 0.2866644, 1)
|
||||
shader_parameter/albedo_color = Color(0.63988274, 0.498594, 0.23564762, 1)
|
||||
shader_parameter/use_texture = true
|
||||
shader_parameter/uv_scale = Vector2(1, 1)
|
||||
shader_parameter/palette_shift_y = 0.0
|
||||
|
||||
Binary file not shown.
74
tgcc/train/glass_train.gdshader
Normal file
74
tgcc/train/glass_train.gdshader
Normal file
@@ -0,0 +1,74 @@
|
||||
shader_type spatial;
|
||||
// cull_disabled permette di vedere il vetro da entrambi i lati (utile se è un singolo piano)
|
||||
// depth_draw_opaque evita bug visivi di sovrapposizione tra oggetti trasparenti
|
||||
render_mode blend_mix, depth_draw_opaque, cull_disabled, shadows_disabled;
|
||||
|
||||
uniform vec4 colore_vetro : source_color = vec4(0.4, 0.7, 0.9, 0.4);
|
||||
|
||||
// --- EFFETTO BORDO (FRESNEL) ---
|
||||
uniform vec4 colore_bordo : source_color = vec4(1.0, 1.0, 1.0, 0.8);
|
||||
uniform float spessore_bordo : hint_range(0.0, 10.0) = 2.5;
|
||||
|
||||
// --- RIFLESSO DEL SOLE (SPECULAR) ---
|
||||
uniform float dimensione_riflesso : hint_range(0.0, 1.0) = 0.05;
|
||||
uniform float intensita_riflesso : hint_range(0.0, 5.0) = 2.0;
|
||||
|
||||
// --- STRISCE DIAGONALI (Opzionali, in stile Anime) ---
|
||||
uniform bool usa_strisce = true;
|
||||
uniform vec4 colore_strisce : source_color = vec4(1.0, 1.0, 1.0, 0.3);
|
||||
uniform float densita_strisce : hint_range(0.0, 20.0) = 6.0;
|
||||
uniform float spessore_strisce : hint_range(0.0, 1.0) = 0.2;
|
||||
|
||||
// --- LUCE INTERNA DEL TRENO (EMISSIVE) ---
|
||||
uniform vec4 colore_emissivo : source_color = vec4(1.0, 0.8, 0.4, 1.0); // Di default è una luce calda interna
|
||||
uniform float intensita_emissiva : hint_range(0.0, 16.0) = 0.0; // 0.0 di giorno, aumentalo di notte
|
||||
|
||||
void fragment() {
|
||||
// 1. Calcoliamo il Fresnel (l'angolo di visuale rispetto alla normale del vetro)
|
||||
float fresnel = 1.0 - clamp(dot(NORMAL, VIEW), 0.0, 1.0);
|
||||
|
||||
// Applichiamo una curva "a gradino" (smoothstep) per renderlo in stile Toon (netto)
|
||||
float toon_fresnel = smoothstep(0.4, 0.45, pow(fresnel, spessore_bordo));
|
||||
|
||||
// 2. Calcoliamo le strisce diagonali
|
||||
float strisce = 0.0;
|
||||
if (usa_strisce) {
|
||||
// Crea linee diagonali basate sulle coordinate UV
|
||||
float pattern = fract((UV.x + UV.y) * densita_strisce);
|
||||
strisce = step(1.0 - spessore_strisce, pattern);
|
||||
}
|
||||
|
||||
// 3. Mescoliamo i colori
|
||||
vec3 colore_finale = mix(colore_vetro.rgb, colore_strisce.rgb, strisce * colore_strisce.a);
|
||||
colore_finale = mix(colore_finale, colore_bordo.rgb, toon_fresnel);
|
||||
|
||||
// 4. L'opacità aumenta sui bordi e sulle strisce
|
||||
float alpha_finale = colore_vetro.a;
|
||||
alpha_finale = max(alpha_finale, strisce * colore_strisce.a);
|
||||
alpha_finale = max(alpha_finale, toon_fresnel * colore_bordo.a);
|
||||
|
||||
ALBEDO = colore_finale;
|
||||
ALPHA = clamp(alpha_finale, 0.0, 1.0);
|
||||
|
||||
// 5. APPLICAZIONE EMISSIONE
|
||||
// Moltiplichiamo il colore RGB per l'intensità scelta.
|
||||
// Se intensita_emissiva supera 1.0 e hai il Glow attivo nel WorldEnvironment, il vetro inizierà a fare "bloom" (brillare).
|
||||
EMISSION = colore_emissivo.rgb * intensita_emissiva;
|
||||
}
|
||||
|
||||
void light() {
|
||||
// --- RIFLESSO TAGLIENTE DEL SOLE ---
|
||||
// Calcoliamo dove la luce colpisce il vetro rispetto alla telecamera
|
||||
vec3 half_vector = normalize(VIEW + LIGHT);
|
||||
float spec_dot = max(dot(NORMAL, half_vector), 0.0);
|
||||
|
||||
// Taglio netto per renderlo stile Toon (invece di una sfumatura realistica)
|
||||
float spec_toon = smoothstep(1.0 - dimensione_riflesso - 0.01, 1.0 - dimensione_riflesso, spec_dot);
|
||||
|
||||
// Luce Diffusa standard (piatta, ideale per il toon)
|
||||
float diff_dot = max(dot(NORMAL, LIGHT), 0.0);
|
||||
DIFFUSE_LIGHT += LIGHT_COLOR * ALBEDO * diff_dot * ATTENUATION;
|
||||
|
||||
// Aggiungiamo il riflesso speculare, moltiplicato per il colore della luce (così al tramonto è arancione!)
|
||||
SPECULAR_LIGHT += LIGHT_COLOR * spec_toon * intensita_riflesso * ATTENUATION;
|
||||
}
|
||||
1
tgcc/train/glass_train.gdshader.uid
Normal file
1
tgcc/train/glass_train.gdshader.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://bkjmw2kd8tdys
|
||||
@@ -1,94 +0,0 @@
|
||||
[gd_scene format=3 uid="uid://otptvwer4par"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://c21blk2uaslb0" path="res://tgcc/train/Treno.fbx" id="1_33mei"]
|
||||
[ext_resource type="Material" uid="uid://bsote67noubj2" path="res://tgcc/train/Color1_train.tres" id="2_5yo4e"]
|
||||
[ext_resource type="Material" uid="uid://c5tg3njinigo6" path="res://tgcc/train/Color2_train.tres" id="2_bks4l"]
|
||||
[ext_resource type="Shader" uid="uid://dw42rl0af5h1m" path="res://tgcc/chunk/material/script/glass.gdshader" id="3_bks4l"]
|
||||
[ext_resource type="Material" uid="uid://cn20mp8ep3yxu" path="res://tgcc/chunk/material/wires.tres" id="4_gua5y"]
|
||||
[ext_resource type="Material" uid="uid://o31kp0jm07q3" path="res://tgcc/chunk/material/rocks.tres" id="5_pj7tp"]
|
||||
[ext_resource type="Material" uid="uid://d4vsl672lwv7" path="res://tgcc/chunk/material/rocks2.tres" id="6_5hjh1"]
|
||||
[ext_resource type="Shader" uid="uid://d0ch5ofrgf7y6" path="res://core/daynight/trunk_shader.gdshader" id="8_d3e7a"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_gua5y"]
|
||||
render_priority = 0
|
||||
shader = ExtResource("3_bks4l")
|
||||
shader_parameter/colore_vetro = Color(0.4, 0.69803923, 0.9019608, 0.6039216)
|
||||
shader_parameter/colore_bordo = Color(1, 1, 1, 0.8)
|
||||
shader_parameter/spessore_bordo = 2.5
|
||||
shader_parameter/dimensione_riflesso = 0.05
|
||||
shader_parameter/intensita_riflesso = 2.0
|
||||
shader_parameter/usa_strisce = true
|
||||
shader_parameter/colore_strisce = Color(1, 1, 1, 0.3)
|
||||
shader_parameter/densita_strisce = 6.0
|
||||
shader_parameter/spessore_strisce = 0.2
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_fuy7x"]
|
||||
render_priority = 0
|
||||
shader = ExtResource("8_d3e7a")
|
||||
shader_parameter/albedo_color = Color(0.5128612, 0.093720816, 0.060247816, 1)
|
||||
shader_parameter/use_texture = true
|
||||
shader_parameter/uv_scale = Vector2(3, 3)
|
||||
shader_parameter/palette_shift_y = 0.0
|
||||
shader_parameter/gradient_start_y = 0.0
|
||||
shader_parameter/gradient_end_y = 1.5
|
||||
shader_parameter/light_steps = 3.0
|
||||
shader_parameter/step_softness = 0.1
|
||||
shader_parameter/shadow_color = Color(0.4, 0.4, 0.6, 1)
|
||||
shader_parameter/shadow_offset = 0.0
|
||||
shader_parameter/cast_shadow_strength = 0.6
|
||||
shader_parameter/use_ghibli_glint = true
|
||||
shader_parameter/glint_color = Color(1, 0.95, 0.85, 1)
|
||||
shader_parameter/glint_intensity = 1.0
|
||||
shader_parameter/glint_sharpness = 32.0
|
||||
shader_parameter/emission_color = Color(0.58809114, 0.06825074, 0.1104274, 1)
|
||||
shader_parameter/emission_energy = 6.5130003093675
|
||||
|
||||
[node name="Treno" unique_id=59024502 instance=ExtResource("1_33mei")]
|
||||
|
||||
[node name="Finestrini" parent="." index="0" unique_id=1543332076]
|
||||
surface_material_override/0 = ExtResource("2_5yo4e")
|
||||
surface_material_override/1 = SubResource("ShaderMaterial_gua5y")
|
||||
surface_material_override/2 = ExtResource("4_gua5y")
|
||||
|
||||
[node name="Ruote" parent="." index="1" unique_id=493887353]
|
||||
surface_material_override/0 = ExtResource("5_pj7tp")
|
||||
surface_material_override/1 = ExtResource("4_gua5y")
|
||||
|
||||
[node name="Train" parent="." index="2" unique_id=1526753963]
|
||||
surface_material_override/0 = ExtResource("6_5hjh1")
|
||||
surface_material_override/1 = ExtResource("2_5yo4e")
|
||||
surface_material_override/2 = ExtResource("2_bks4l")
|
||||
surface_material_override/3 = ExtResource("4_gua5y")
|
||||
surface_material_override/4 = SubResource("ShaderMaterial_fuy7x")
|
||||
|
||||
[node name="OmniLight3D" type="OmniLight3D" parent="." index="3" unique_id=1691234334]
|
||||
transform = Transform3D(1, -1.7484555e-07, 2.084322e-14, 0, -1.1920932e-07, -1, 1.7484555e-07, 1, -1.1920932e-07, -0.5582664, 2.0278232, 3.5785637)
|
||||
light_color = Color(0.9818843, 0.6206694, 0.26694176, 1)
|
||||
omni_range = 0.437
|
||||
omni_attenuation = 0.367
|
||||
|
||||
[node name="OmniLight3D2" type="OmniLight3D" parent="." index="4" unique_id=6838273]
|
||||
transform = Transform3D(1, -1.7484555e-07, 2.084322e-14, 0, -1.1920932e-07, -1, 1.7484555e-07, 1, -1.1920932e-07, 1.3665512, 2.0278232, 3.5785637)
|
||||
light_color = Color(0.9818843, 0.6206694, 0.26694176, 1)
|
||||
omni_range = 0.437
|
||||
omni_attenuation = 0.367
|
||||
|
||||
[node name="SpotLight3D2" type="SpotLight3D" parent="OmniLight3D2" index="0" unique_id=806665693]
|
||||
transform = Transform3D(-0.9991066, -0.0071844957, -0.041647904, 0.039682645, 0.1795881, -0.9829413, 0.014541405, -0.98371583, -0.17914255, -2.2325838, -0.021801949, -0.18683863)
|
||||
light_color = Color(0.8039216, 0.6784314, 0.3254902, 1)
|
||||
light_energy = 4.0
|
||||
light_cull_mask = 4294967293
|
||||
spot_range = 18.0
|
||||
spot_attenuation = 1.2
|
||||
spot_angle = 35.0
|
||||
spot_angle_attenuation = 8.876516
|
||||
|
||||
[node name="SpotLight3D3" type="SpotLight3D" parent="OmniLight3D2" index="1" unique_id=950261246]
|
||||
transform = Transform3D(-0.9991066, -0.0071844957, -0.041647904, 0.039682645, 0.1795881, -0.9829413, 0.014541405, -0.98371583, -0.17914255, 0.31696087, -0.020600319, -0.18641448)
|
||||
light_color = Color(0.8574047, 0.65361816, 0.27671134, 1)
|
||||
light_energy = 4.0
|
||||
light_cull_mask = 4294967293
|
||||
spot_range = 18.0
|
||||
spot_attenuation = 1.2
|
||||
spot_angle = 35.0
|
||||
spot_angle_attenuation = 8.876516
|
||||
BIN
tgcc/train/mesh/train.fbx
Normal file
BIN
tgcc/train/mesh/train.fbx
Normal file
Binary file not shown.
@@ -4,12 +4,12 @@ importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://c21blk2uaslb0"
|
||||
path="res://.godot/imported/Treno.fbx-165bdd3d50c5ec86304fc2307ae4547b.scn"
|
||||
path="res://.godot/imported/train.fbx-b61ae3fb3961e701f1c379407b2266b3.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://tgcc/train/Treno.fbx"
|
||||
dest_files=["res://.godot/imported/Treno.fbx-165bdd3d50c5ec86304fc2307ae4547b.scn"]
|
||||
source_file="res://tgcc/train/mesh/train.fbx"
|
||||
dest_files=["res://.godot/imported/train.fbx-b61ae3fb3961e701f1c379407b2266b3.scn"]
|
||||
|
||||
[params]
|
||||
|
||||
BIN
tgcc/train/mesh/wagon.fbx
Normal file
BIN
tgcc/train/mesh/wagon.fbx
Normal file
Binary file not shown.
44
tgcc/train/mesh/wagon.fbx.import
Normal file
44
tgcc/train/mesh/wagon.fbx.import
Normal file
@@ -0,0 +1,44 @@
|
||||
[remap]
|
||||
|
||||
importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://cyht10cgbi0ge"
|
||||
path="res://.godot/imported/wagon.fbx-149ef1fd375cd88900b0d29cf70891a1.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://tgcc/train/mesh/wagon.fbx"
|
||||
dest_files=["res://.godot/imported/wagon.fbx-149ef1fd375cd88900b0d29cf70891a1.scn"]
|
||||
|
||||
[params]
|
||||
|
||||
nodes/root_type=""
|
||||
nodes/root_name=""
|
||||
nodes/root_script=null
|
||||
nodes/apply_root_scale=true
|
||||
nodes/root_scale=1.0
|
||||
nodes/import_as_skeleton_bones=false
|
||||
nodes/use_name_suffixes=true
|
||||
nodes/use_node_type_suffixes=true
|
||||
meshes/ensure_tangents=true
|
||||
meshes/generate_lods=true
|
||||
meshes/create_shadow_meshes=true
|
||||
meshes/light_baking=1
|
||||
meshes/lightmap_texel_size=0.2
|
||||
meshes/force_disable_compression=false
|
||||
skins/use_named_skins=true
|
||||
animation/import=true
|
||||
animation/fps=30
|
||||
animation/trimming=true
|
||||
animation/remove_immutable_tracks=true
|
||||
animation/import_rest_as_RESET=false
|
||||
import_script/path=""
|
||||
materials/extract=0
|
||||
materials/extract_format=0
|
||||
materials/extract_path=""
|
||||
_subresources={}
|
||||
fbx/importer=0
|
||||
fbx/allow_geometry_helper_nodes=false
|
||||
fbx/embedded_image_handling=1
|
||||
fbx/naming_version=2
|
||||
Binary file not shown.
@@ -4,12 +4,12 @@ importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://bc7tn5b2clqid"
|
||||
path="res://.godot/imported/rail.fbx-9b266fc60446ee50a23afdb896866df6.scn"
|
||||
path="res://.godot/imported/rail.fbx-6c24ea665ce44578b49806e7b7506955.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://tgcc/train/rail.fbx"
|
||||
dest_files=["res://.godot/imported/rail.fbx-9b266fc60446ee50a23afdb896866df6.scn"]
|
||||
source_file="res://tgcc/train/rail/rail.fbx"
|
||||
dest_files=["res://.godot/imported/rail.fbx-6c24ea665ce44578b49806e7b7506955.scn"]
|
||||
|
||||
[params]
|
||||
|
||||
@@ -45,7 +45,7 @@ _subresources={
|
||||
"generate/shadow_meshes": 0,
|
||||
"lods/normal_merge_angle": 3.0,
|
||||
"save_to_file/enabled": true,
|
||||
"save_to_file/fallback_path": "res://tgcc/train/rail.res",
|
||||
"save_to_file/fallback_path": "res://tgcc/train/rail/rail.res",
|
||||
"save_to_file/path": "uid://dpjdvm0d2ydra"
|
||||
}
|
||||
}
|
||||
BIN
tgcc/train/rail/rail.res
Normal file
BIN
tgcc/train/rail/rail.res
Normal file
Binary file not shown.
@@ -1,6 +1,6 @@
|
||||
[gd_scene format=3 uid="uid://dtee3qewqnqpm"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bc7tn5b2clqid" path="res://tgcc/train/rail.fbx" id="1_w7awx"]
|
||||
[ext_resource type="PackedScene" uid="uid://bc7tn5b2clqid" path="res://tgcc/train/rail/rail.fbx" id="1_w7awx"]
|
||||
[ext_resource type="Shader" uid="uid://bteuuiddfgkpy" path="res://tgcc/chunk/material/script/path_chunk.gdshader" id="2_g1n28"]
|
||||
[ext_resource type="Texture2D" uid="uid://3y34uyq47ldc" path="res://tgcc/chunk/material/noise/roadnoise.tres" id="3_cj7ap"]
|
||||
[ext_resource type="Material" uid="uid://buxlrrpn7rdgs" path="res://tgcc/chunk/material/wood.tres" id="4_fb7cw"]
|
||||
@@ -4,12 +4,12 @@ importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://bowkbyxbq2jg2"
|
||||
path="res://.godot/imported/main_train.fbx-a8a75b9caee56fd8d46ba4c07562dcdb.scn"
|
||||
path="res://.godot/imported/Train_test.fbx-ff9429354dc1bcf95a1188a56028d33c.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://tgcc/train/test/main_train.fbx"
|
||||
dest_files=["res://.godot/imported/main_train.fbx-a8a75b9caee56fd8d46ba4c07562dcdb.scn"]
|
||||
source_file="res://tgcc/train/test/Train_test.fbx"
|
||||
dest_files=["res://.godot/imported/Train_test.fbx-ff9429354dc1bcf95a1188a56028d33c.scn"]
|
||||
|
||||
[params]
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
[gd_scene format=3 uid="uid://dvk3bytqn3m5s"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bowkbyxbq2jg2" path="res://tgcc/train/test/main_train.fbx" id="1_8k78i"]
|
||||
[ext_resource type="Material" uid="uid://df1ghvw3d61x8" path="res://tgcc/train/train1.tres" id="2_crne2"]
|
||||
[ext_resource type="Material" uid="uid://cufolpn48xxmv" path="res://tgcc/train/train2.tres" id="3_tf27f"]
|
||||
[ext_resource type="Material" uid="uid://bu8wmlp0ffark" path="res://tgcc/train/train3.tres" id="4_e08y7"]
|
||||
[ext_resource type="Material" uid="uid://cn5vw7unbqgve" path="res://core/daynight/weather_overlay.tres" id="5_weather"]
|
||||
[ext_resource type="PackedScene" uid="uid://bowkbyxbq2jg2" path="res://tgcc/train/test/Train_test.fbx" id="1_ha6rd"]
|
||||
[ext_resource type="Material" uid="uid://cn5vw7unbqgve" path="res://core/daynight/weather_overlay.tres" id="2_aeyp7"]
|
||||
[ext_resource type="Material" uid="uid://df1ghvw3d61x8" path="res://tgcc/train/test/train1.tres" id="3_hjips"]
|
||||
[ext_resource type="Material" uid="uid://cufolpn48xxmv" path="res://tgcc/train/test/train2.tres" id="4_u7fc2"]
|
||||
[ext_resource type="Material" uid="uid://bu8wmlp0ffark" path="res://tgcc/train/test/train3.tres" id="5_l57ni"]
|
||||
|
||||
[sub_resource type="PlaneMesh" id="PlaneMesh_8k78i"]
|
||||
|
||||
@@ -13,16 +13,16 @@ emission_enabled = true
|
||||
emission = Color(0.59849787, 0.2744873, 0.018916829, 1)
|
||||
emission_energy_multiplier = 14.84
|
||||
|
||||
[node name="Train2" unique_id=648833201 groups=["weather_node", "wind_node"] instance=ExtResource("1_8k78i")]
|
||||
[node name="Train2" unique_id=648833201 groups=["weather_node", "wind_node"] instance=ExtResource("1_ha6rd")]
|
||||
transform = Transform3D(-0.85, 0, -1.2834644e-07, 0, 0.85, 0, 1.2834644e-07, 0, -0.85, 0, 0, 0)
|
||||
|
||||
[node name="polySurface3708_002" parent="." index="0" unique_id=1819112767]
|
||||
[node name="polySurface3708_002" parent="." index="0" unique_id=1007074065]
|
||||
transform = Transform3D(99.99998, 0, 0, 0, -4.3711375e-06, 99.99999, 0, -99.99997, -4.3711384e-06, 0, 1.5, 0)
|
||||
material_overlay = ExtResource("5_weather")
|
||||
surface_material_override/0 = ExtResource("2_crne2")
|
||||
surface_material_override/1 = ExtResource("3_tf27f")
|
||||
surface_material_override/2 = ExtResource("2_crne2")
|
||||
surface_material_override/3 = ExtResource("4_e08y7")
|
||||
material_overlay = ExtResource("2_aeyp7")
|
||||
surface_material_override/0 = ExtResource("3_hjips")
|
||||
surface_material_override/1 = ExtResource("4_u7fc2")
|
||||
surface_material_override/2 = ExtResource("3_hjips")
|
||||
surface_material_override/3 = ExtResource("5_l57ni")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="." index="1" unique_id=1403632389]
|
||||
transform = Transform3D(-2.4656883e-08, 1, 0, -0.5640837, -4.371139e-08, 0, 0, 0, 0.668482, 1.6818931, 2.5172625, 1.2770853)
|
||||
69
tgcc/train/train.tscn
Normal file
69
tgcc/train/train.tscn
Normal file
@@ -0,0 +1,69 @@
|
||||
[gd_scene format=3 uid="uid://otptvwer4par"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://c21blk2uaslb0" path="res://tgcc/train/mesh/train.fbx" id="1_33mei"]
|
||||
[ext_resource type="Material" uid="uid://bsote67noubj2" path="res://tgcc/train/Color1_train.tres" id="2_5yo4e"]
|
||||
[ext_resource type="Material" uid="uid://c5tg3njinigo6" path="res://tgcc/train/Color2_train.tres" id="2_bks4l"]
|
||||
[ext_resource type="Material" uid="uid://7eq06nknuhuu" path="res://tgcc/chunk/material/glass_train.tres" id="3_sgpgi"]
|
||||
[ext_resource type="Material" uid="uid://cn20mp8ep3yxu" path="res://tgcc/chunk/material/wires.tres" id="4_gua5y"]
|
||||
[ext_resource type="Material" uid="uid://o31kp0jm07q3" path="res://tgcc/chunk/material/rocks.tres" id="5_pj7tp"]
|
||||
[ext_resource type="Material" uid="uid://d4vsl672lwv7" path="res://tgcc/chunk/material/rocks2.tres" id="6_5hjh1"]
|
||||
[ext_resource type="Shader" uid="uid://d0ch5ofrgf7y6" path="res://core/daynight/trunk_shader.gdshader" id="8_d3e7a"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_fuy7x"]
|
||||
render_priority = 0
|
||||
shader = ExtResource("8_d3e7a")
|
||||
shader_parameter/albedo_color = Color(0.5128612, 0.093720816, 0.060247816, 1)
|
||||
shader_parameter/use_texture = true
|
||||
shader_parameter/uv_scale = Vector2(3, 3)
|
||||
shader_parameter/palette_shift_y = 0.0
|
||||
shader_parameter/gradient_start_y = 0.0
|
||||
shader_parameter/gradient_end_y = 1.5
|
||||
shader_parameter/light_steps = 3.0
|
||||
shader_parameter/step_softness = 0.1
|
||||
shader_parameter/shadow_color = Color(0.4, 0.4, 0.6, 1)
|
||||
shader_parameter/shadow_offset = 0.0
|
||||
shader_parameter/cast_shadow_strength = 0.6
|
||||
shader_parameter/use_ghibli_glint = true
|
||||
shader_parameter/glint_color = Color(1, 0.95, 0.85, 1)
|
||||
shader_parameter/glint_intensity = 1.0
|
||||
shader_parameter/glint_sharpness = 32.0
|
||||
shader_parameter/emission_color = Color(0.3875077, 0.16205889, 0.035861596, 1)
|
||||
shader_parameter/emission_energy = 12.00000057
|
||||
|
||||
[node name="Treno" unique_id=1182090923 instance=ExtResource("1_33mei")]
|
||||
|
||||
[node name="Finestrini" parent="." index="0" unique_id=1797001001]
|
||||
surface_material_override/0 = ExtResource("2_bks4l")
|
||||
surface_material_override/1 = ExtResource("3_sgpgi")
|
||||
surface_material_override/2 = ExtResource("4_gua5y")
|
||||
|
||||
[node name="Ruote" parent="." index="1" unique_id=226016697]
|
||||
surface_material_override/0 = ExtResource("5_pj7tp")
|
||||
surface_material_override/1 = ExtResource("4_gua5y")
|
||||
|
||||
[node name="Train" parent="." index="2" unique_id=1876679965]
|
||||
surface_material_override/0 = ExtResource("6_5hjh1")
|
||||
surface_material_override/1 = ExtResource("2_5yo4e")
|
||||
surface_material_override/2 = ExtResource("2_bks4l")
|
||||
surface_material_override/3 = ExtResource("4_gua5y")
|
||||
surface_material_override/4 = SubResource("ShaderMaterial_fuy7x")
|
||||
|
||||
[node name="SpotLight3D2" type="SpotLight3D" parent="." index="3" unique_id=806665693]
|
||||
transform = Transform3D(-0.9991066, -0.007184529, -0.041647732, -0.01454141, 0.9837157, 0.17914264, 0.03968247, 0.1795882, -0.9829412, -1.1868949, 2.2565823, 4.913539)
|
||||
light_color = Color(0.8039216, 0.6784314, 0.3254902, 1)
|
||||
light_energy = 6.0
|
||||
light_cull_mask = 4294967293
|
||||
spot_range = 18.0
|
||||
spot_attenuation = 1.2
|
||||
spot_angle = 35.0
|
||||
spot_angle_attenuation = 8.876516
|
||||
|
||||
[node name="SpotLight3D3" type="SpotLight3D" parent="." index="4" unique_id=950261246]
|
||||
transform = Transform3D(-0.9991066, -0.007184529, -0.041647732, -0.01454141, 0.9837157, 0.17914264, 0.03968247, 0.1795882, -0.9829412, 1.1990398, 2.2567835, 5.003469)
|
||||
light_color = Color(0.8574047, 0.65361816, 0.27671134, 1)
|
||||
light_energy = 6.0
|
||||
light_cull_mask = 4294967293
|
||||
spot_range = 18.0
|
||||
spot_attenuation = 1.2
|
||||
spot_angle = 35.0
|
||||
spot_angle_attenuation = 8.876516
|
||||
52
tgcc/train/wagon.tscn
Normal file
52
tgcc/train/wagon.tscn
Normal file
@@ -0,0 +1,52 @@
|
||||
[gd_scene format=3 uid="uid://bny4kv08j8j40"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://cyht10cgbi0ge" path="res://tgcc/train/mesh/wagon.fbx" id="1_ud2nc"]
|
||||
[ext_resource type="Material" uid="uid://c5tg3njinigo6" path="res://tgcc/train/Color2_train.tres" id="2_upuw2"]
|
||||
[ext_resource type="Material" uid="uid://7eq06nknuhuu" path="res://tgcc/chunk/material/glass_train.tres" id="3_wwpam"]
|
||||
[ext_resource type="Material" uid="uid://cn20mp8ep3yxu" path="res://tgcc/chunk/material/wires.tres" id="4_wwpam"]
|
||||
[ext_resource type="Material" uid="uid://o31kp0jm07q3" path="res://tgcc/chunk/material/rocks.tres" id="5_yjhvb"]
|
||||
[ext_resource type="Material" uid="uid://d4vsl672lwv7" path="res://tgcc/chunk/material/rocks2.tres" id="6_6ck1e"]
|
||||
[ext_resource type="Material" uid="uid://bsote67noubj2" path="res://tgcc/train/Color1_train.tres" id="7_wglgp"]
|
||||
[ext_resource type="Shader" uid="uid://d0ch5ofrgf7y6" path="res://core/daynight/trunk_shader.gdshader" id="8_1l8o6"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_t2dm3"]
|
||||
render_priority = 0
|
||||
shader = ExtResource("8_1l8o6")
|
||||
shader_parameter/albedo_color = Color(0.5128612, 0.093720816, 0.060247816, 1)
|
||||
shader_parameter/use_texture = true
|
||||
shader_parameter/uv_scale = Vector2(3, 3)
|
||||
shader_parameter/palette_shift_y = 0.0
|
||||
shader_parameter/gradient_start_y = 0.0
|
||||
shader_parameter/gradient_end_y = 1.5
|
||||
shader_parameter/light_steps = 3.0
|
||||
shader_parameter/step_softness = 0.1
|
||||
shader_parameter/shadow_color = Color(0.4, 0.4, 0.6, 1)
|
||||
shader_parameter/shadow_offset = 0.0
|
||||
shader_parameter/cast_shadow_strength = 0.6
|
||||
shader_parameter/use_ghibli_glint = true
|
||||
shader_parameter/glint_color = Color(1, 0.95, 0.85, 1)
|
||||
shader_parameter/glint_intensity = 1.0
|
||||
shader_parameter/glint_sharpness = 32.0
|
||||
shader_parameter/emission_color = Color(0.5882353, 0.06666667, 0.10980392, 1)
|
||||
shader_parameter/emission_energy = 6.50000030875
|
||||
|
||||
[node name="wagon" unique_id=14655460 instance=ExtResource("1_ud2nc")]
|
||||
|
||||
[node name="Finestrini_001" parent="." index="0" unique_id=1279718063]
|
||||
surface_material_override/0 = ExtResource("2_upuw2")
|
||||
surface_material_override/1 = ExtResource("3_wwpam")
|
||||
surface_material_override/2 = ExtResource("4_wwpam")
|
||||
|
||||
[node name="Ruote_001" parent="." index="1" unique_id=1956251925]
|
||||
surface_material_override/0 = ExtResource("5_yjhvb")
|
||||
surface_material_override/1 = ExtResource("4_wwpam")
|
||||
|
||||
[node name="Train_001" parent="." index="2" unique_id=1459741257]
|
||||
surface_material_override/0 = ExtResource("6_6ck1e")
|
||||
surface_material_override/1 = ExtResource("7_wglgp")
|
||||
surface_material_override/2 = ExtResource("2_upuw2")
|
||||
surface_material_override/3 = ExtResource("4_wwpam")
|
||||
surface_material_override/4 = SubResource("ShaderMaterial_t2dm3")
|
||||
|
||||
[node name="Train_002" parent="." index="3" unique_id=1114714449]
|
||||
surface_material_override/0 = ExtResource("6_6ck1e")
|
||||
Reference in New Issue
Block a user