From 230baeda0ee5aca778fc2c7c1c2df464b52dfd04 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 19 Feb 2022 09:16:33 +0100 Subject: [PATCH] Set up a liquid material. --- game/materials/liquid_material.tres.tres | 9 +++++++++ game/scenes/world/new_terramanlibrarymergerpcm.tres | 4 +++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 game/materials/liquid_material.tres.tres diff --git a/game/materials/liquid_material.tres.tres b/game/materials/liquid_material.tres.tres new file mode 100644 index 00000000..227d633b --- /dev/null +++ b/game/materials/liquid_material.tres.tres @@ -0,0 +1,9 @@ +[gd_resource type="SpatialMaterial" format=2] + +[resource] +flags_transparent = true +flags_unshaded = true +flags_do_not_receive_shadows = true +vertex_color_use_as_albedo = true +params_cull_mode = 2 +albedo_color = Color( 1, 1, 1, 0.662745 ) diff --git a/game/scenes/world/new_terramanlibrarymergerpcm.tres b/game/scenes/world/new_terramanlibrarymergerpcm.tres index 9f6a8870..1562baaf 100644 --- a/game/scenes/world/new_terramanlibrarymergerpcm.tres +++ b/game/scenes/world/new_terramanlibrarymergerpcm.tres @@ -1,4 +1,4 @@ -[gd_resource type="TerrainLibraryMergerPCM" load_steps=12 format=2] +[gd_resource type="TerrainLibraryMergerPCM" load_steps=13 format=2] [ext_resource path="res://materials/8_standard_material_prop_notex.tres" type="Material" id=1] [ext_resource path="res://materials/6_standard_material_prop_nouv2.tres" type="Material" id=2] @@ -7,6 +7,7 @@ [ext_resource path="res://textures/world/stone/stone_1_albedo.png" type="Texture" id=5] [ext_resource path="res://materials/7_standard_material_notex.tres" type="Material" id=6] [ext_resource path="res://materials/5_standard_material_nouv2.tres" type="Material" id=7] +[ext_resource path="res://materials/liquid_material.tres.tres" type="Material" id=8] [sub_resource type="TerrainSurfaceMerger" id=1] texture_top = ExtResource( 3 ) @@ -30,6 +31,7 @@ texture_side = ExtResource( 5 ) [resource] materials = [ ExtResource( 7 ), ExtResource( 7 ), ExtResource( 7 ), ExtResource( 7 ), ExtResource( 6 ) ] +liquid_materials = [ ExtResource( 8 ) ] prop_materials = [ ExtResource( 2 ), ExtResource( 2 ), ExtResource( 2 ), ExtResource( 2 ), ExtResource( 1 ) ] texture_flags = 1 terra_surfaces = [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ) ]