From 6983e87b97cefa7921ed8e7d167d279eff28f3e1 Mon Sep 17 00:00:00 2001 From: Sara Date: Wed, 22 Apr 2026 22:23:28 +0200 Subject: [PATCH] chore: switched slope texture to noise texture --- project/assets/style/terrain_material.tres | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/project/assets/style/terrain_material.tres b/project/assets/style/terrain_material.tres index f79d9e32..4d8e586a 100644 --- a/project/assets/style/terrain_material.tres +++ b/project/assets/style/terrain_material.tres @@ -2,8 +2,7 @@ [ext_resource type="Material" uid="uid://xkuv2ykmgtvy" path="res://assets/style/terrain_outline_material.tres" id="1_3a5j4"] [ext_resource type="Shader" uid="uid://c60nelvuk52q5" path="res://assets/style/terrain_shader.gdshader" id="1_8t1yb"] -[ext_resource type="Texture2D" uid="uid://mu0p57530drr" path="res://assets/environments/terrain/textures/rock023_alb_ht.png" id="3_2skdn"] -[ext_resource type="Texture2D" uid="uid://d2utst16vo545" path="res://assets/environments/terrain/textures/rock023_nrm_rgh.png" id="4_pkl7k"] +[ext_resource type="FastNoiseLite" uid="uid://xxd1cr8y6ooh" path="res://assets/environments/terrain/textures/rock_texture.tres" id="3_2vqw0"] [sub_resource type="Gradient" id="Gradient_3a5j4"] colors = PackedColorArray(0.41641998, 0.47, 0.3807, 1, 0.4736, 0.64, 0.3904, 1) @@ -21,6 +20,18 @@ noise = SubResource("FastNoiseLite_2vqw0") color_ramp = SubResource("Gradient_3a5j4") seamless = true +[sub_resource type="Gradient" id="Gradient_2skdn"] +offsets = PackedFloat32Array(0, 0.6968085, 1) +colors = PackedColorArray(0.46229059, 0.46229059, 0.46229059, 1, 0.5923288, 0.5923288, 0.5923287, 1, 0.76518047, 0.5300163, 0.40706056, 1) + +[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_pkl7k"] +width = 1024 +height = 1024 +noise = ExtResource("3_2vqw0") +color_ramp = SubResource("Gradient_2skdn") +seamless = true +seamless_blend_skirt = 0.532 + [resource] render_priority = 0 next_pass = ExtResource("1_3a5j4") @@ -41,8 +52,7 @@ shader_parameter/floor_3_metallic = 0.5 shader_parameter/region_blending = 1.0 shader_parameter/slope_threshold = 0.4 shader_parameter/slope_blend_distance = 0.0 -shader_parameter/slope_albedo = ExtResource("3_2skdn") -shader_parameter/slope_normal = ExtResource("4_pkl7k") +shader_parameter/slope_albedo = SubResource("NoiseTexture2D_pkl7k") shader_parameter/slope_tiling = 0.1 shader_parameter/slope_roughness = 0.7 shader_parameter/slope_specular = 0.5