From 124c1632123b864cc233722fc740b564b25b7de4 Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 3 Aug 2021 01:13:25 +0200 Subject: [PATCH] Added a new library based on TerramanLibraryMergerPCM, and set the main world to use it. --- game/tw/TerraWorldBlocky.tscn | 2 +- game/tw/new_terramanlibrarymergerpcm.tres | 32 +++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 game/tw/new_terramanlibrarymergerpcm.tres diff --git a/game/tw/TerraWorldBlocky.tscn b/game/tw/TerraWorldBlocky.tscn index ece025be..25264b80 100644 --- a/game/tw/TerraWorldBlocky.tscn +++ b/game/tw/TerraWorldBlocky.tscn @@ -1,6 +1,6 @@ [gd_scene load_steps=10 format=2] -[ext_resource path="res://tw/new_terramanlibrarymerger.tres" type="TerramanLibraryMerger" id=1] +[ext_resource path="res://tw/new_terramanlibrarymergerpcm.tres" type="TerramanLibraryMergerPCM" id=1] [ext_resource path="res://tw/TerraWorldBlocky.gd" type="Script" id=2] [ext_resource path="res://scripts/world_generators/MainTPlanetGenerator.gd" type="Script" id=3] [ext_resource path="res://scripts/settings/DirectionalLightSettings.gd" type="Script" id=4] diff --git a/game/tw/new_terramanlibrarymergerpcm.tres b/game/tw/new_terramanlibrarymergerpcm.tres new file mode 100644 index 00000000..1a9547be --- /dev/null +++ b/game/tw/new_terramanlibrarymergerpcm.tres @@ -0,0 +1,32 @@ +[gd_resource type="TerramanLibraryMergerPCM" load_steps=10 format=2] + +[ext_resource path="res://modules/planets/test_planet/voxel_library/textures/grass_mossy_albedo.png" type="Texture" id=1] +[ext_resource path="res://modules/planets/test_planet/voxel_library/textures/stone_1_albedo.png" type="Texture" id=2] +[ext_resource path="res://modules/planets/test_planet/voxel_library/textures/dirt_albedo.png" type="Texture" id=3] +[ext_resource path="res://modules/core/materials/7_standard_material_notex.tres" type="Material" id=4] +[ext_resource path="res://modules/core/materials/5_standard_material_nouv2.tres" type="Material" id=5] + +[sub_resource type="TerraSurfaceMerger" id=1] +texture_top = ExtResource( 1 ) +texture_bottom = ExtResource( 1 ) +texture_side = ExtResource( 1 ) + +[sub_resource type="TerraSurfaceMerger" id=2] +texture_top = ExtResource( 3 ) +texture_bottom = ExtResource( 3 ) +texture_side = ExtResource( 3 ) + +[sub_resource type="TerraSurfaceMerger" id=3] +texture_top = ExtResource( 3 ) +texture_bottom = ExtResource( 1 ) +texture_side = ExtResource( 2 ) + +[sub_resource type="TerraSurfaceMerger" id=4] +texture_top = ExtResource( 2 ) +texture_bottom = ExtResource( 2 ) +texture_side = ExtResource( 2 ) + +[resource] +materials = [ ExtResource( 5 ), ExtResource( 5 ), ExtResource( 5 ), ExtResource( 5 ), ExtResource( 4 ) ] +texture_flags = 1 +voxel_surfaces = [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ) ]