Created a grass texture, and a dirt texture. Modified my old textures. Now the world's textures are 64x64, and the voxel scale is 2.

This commit is contained in:
Relintai 2019-12-23 22:45:29 +01:00
parent f0a85e99ef
commit 8b153238c9
15 changed files with 655 additions and 57 deletions

View File

@ -1,6 +1,6 @@
[gd_resource type="VoxelSurfaceMerger" load_steps=2 format=2]
[ext_resource path="res://data/voxel_textures/test_07.png" type="Texture" id=1]
[ext_resource path="res://data/voxel_textures/dirt_albedo.png" type="Texture" id=1]
[resource]
resource_name = "Stone"

View File

@ -1,6 +1,6 @@
[gd_resource type="VoxelSurfaceMerger" load_steps=2 format=2]
[ext_resource path="res://data/voxel_textures/test_04.png" type="Texture" id=1]
[ext_resource path="res://data/voxel_textures/grass_albedo.png" type="Texture" id=1]
[resource]
resource_name = "Test2"

View File

@ -0,0 +1,277 @@
{
"connections": [
{
"from": "perlin",
"from_port": 0,
"to": "colorize_2",
"to_port": 0
},
{
"from": "noise_2",
"from_port": 0,
"to": "colorize",
"to_port": 0
},
{
"from": "colorize",
"from_port": 0,
"to": "emboss_2",
"to_port": 0
},
{
"from": "emboss_2",
"from_port": 0,
"to": "colorize_3",
"to_port": 0
},
{
"from": "colorize_2",
"from_port": 0,
"to": "blend_3",
"to_port": 1
},
{
"from": "colorize_3",
"from_port": 0,
"to": "blend_3",
"to_port": 0
},
{
"from": "blend_3",
"from_port": 0,
"to": "Material",
"to_port": 0
},
{
"from": "blend_3",
"from_port": 0,
"to": "export",
"to_port": 0
}
],
"label": "Graph",
"name": "@@3901",
"node_position": {
"x": 0,
"y": 0
},
"nodes": [
{
"name": "Material",
"node_position": {
"x": 0,
"y": 0
},
"parameters": {
"albedo_color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
},
"ao_light_affect": 1,
"depth_scale": 1,
"emission_energy": 1,
"metallic": 1,
"normal_scale": 1,
"roughness": 1,
"size": 6,
"subsurf_scatter_strength": 0
},
"type": "material"
},
{
"name": "export",
"node_position": {
"x": 6,
"y": 328
},
"parameters": {
"size": 6,
"suffix": "albedo"
},
"type": "export"
},
{
"name": "colorize",
"node_position": {
"x": -1160,
"y": 40
},
"parameters": {
"gradient": {
"interpolation": 1,
"points": [
{
"a": 0,
"b": 0,
"g": 0,
"pos": 0,
"r": 0
},
{
"a": 1,
"b": 0.125156,
"g": 0.183677,
"pos": 0.690909,
"r": 0.25
},
{
"a": 1,
"b": 0.089244,
"g": 0.260592,
"pos": 0.990909,
"r": 0.317708
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "colorize_2",
"node_position": {
"x": -1093,
"y": 376
},
"parameters": {
"gradient": {
"interpolation": 1,
"points": [
{
"a": 1,
"b": 0.011867,
"g": 0.013639,
"pos": 0.006818,
"r": 0.026042
},
{
"a": 1,
"b": 0.147277,
"g": 0.196776,
"pos": 0.527273,
"r": 0.260417
},
{
"a": 1,
"b": 0.278948,
"g": 0.415009,
"pos": 1,
"r": 0.520833
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "emboss_2",
"node_position": {
"x": -927,
"y": 55
},
"parameters": {
"param0": 7,
"param1": 47.885,
"param2": 7.3
},
"type": "emboss"
},
{
"name": "perlin",
"node_position": {
"x": -1358,
"y": 390
},
"parameters": {
"iterations": 4,
"persistence": 1,
"scale_x": 10,
"scale_y": 10
},
"type": "perlin"
},
{
"name": "perlin_2",
"node_position": {
"x": -1260,
"y": 763
},
"parameters": {
"iterations": 3,
"persistence": 0.5,
"scale_x": 4,
"scale_y": 4
},
"type": "perlin"
},
{
"name": "noise_2",
"node_position": {
"x": -1427,
"y": 46
},
"parameters": {
"density": 0.0036,
"size": 7
},
"type": "noise"
},
{
"name": "colorize_3",
"node_position": {
"x": -672,
"y": 90
},
"parameters": {
"gradient": {
"interpolation": 1,
"points": [
{
"a": 0,
"b": 0,
"g": 0,
"pos": 0.618182,
"r": 0
},
{
"a": 1,
"b": 0.053286,
"g": 0.191732,
"pos": 0.818182,
"r": 0.286458
},
{
"a": 1,
"b": 0.583333,
"g": 0.579783,
"pos": 1,
"r": 0.545464
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "blend_3",
"node_position": {
"x": -469.75,
"y": 378
},
"parameters": {
"amount": 0.6543,
"blend_type": 8
},
"type": "blend"
}
],
"parameters": {
},
"type": "graph"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/dirt_albedo.png-47a676d91b055f6f9b4c1c9187cd7814.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://data/voxel_textures/dirt_albedo.png"
dest_files=[ "res://.import/dirt_albedo.png-47a676d91b055f6f9b4c1c9187cd7814.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=false
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

View File

@ -0,0 +1,260 @@
{
"connections": [
{
"from": "noise",
"from_port": 0,
"to": "blend_2",
"to_port": 1
},
{
"from": "voronoi",
"from_port": 0,
"to": "blend_2",
"to_port": 0
},
{
"from": "blend_2",
"from_port": 0,
"to": "colorize_3",
"to_port": 0
},
{
"from": "colorize_3",
"from_port": 0,
"to": "blend_3",
"to_port": 0
},
{
"from": "blend_3",
"from_port": 0,
"to": "Material",
"to_port": 0
},
{
"from": "blend_3",
"from_port": 0,
"to": "export",
"to_port": 0
},
{
"from": "gaussian_blur",
"from_port": 0,
"to": "blend_3",
"to_port": 1
},
{
"from": "perlin",
"from_port": 0,
"to": "colorize",
"to_port": 0
},
{
"from": "colorize",
"from_port": 0,
"to": "gaussian_blur",
"to_port": 0
}
],
"label": "Graph",
"name": "@@2692",
"node_position": {
"x": 0,
"y": 0
},
"nodes": [
{
"name": "Material",
"node_position": {
"x": 484,
"y": -482
},
"parameters": {
"albedo_color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
},
"ao_light_affect": 1,
"depth_scale": 1,
"emission_energy": 1,
"metallic": 1,
"normal_scale": 1,
"roughness": 1,
"size": 6,
"subsurf_scatter_strength": 0
},
"type": "material"
},
{
"name": "noise",
"node_position": {
"x": -1083,
"y": -309
},
"parameters": {
"density": 0.034225,
"size": 6
},
"type": "noise"
},
{
"name": "colorize",
"node_position": {
"x": -869,
"y": 0
},
"parameters": {
"gradient": {
"interpolation": 1,
"points": [
{
"a": 1,
"b": 0.070004,
"g": 0.072917,
"pos": 0,
"r": 0.061265
},
{
"a": 1,
"b": 0.130355,
"g": 0.1875,
"pos": 0.563636,
"r": 0.100421
},
{
"a": 1,
"b": 0.164892,
"g": 0.557292,
"pos": 0.990909,
"r": 0.262991
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "export",
"node_position": {
"x": 505,
"y": -129
},
"parameters": {
"size": 6,
"suffix": "albedo"
},
"type": "export"
},
{
"name": "blend_2",
"node_position": {
"x": -757,
"y": -544
},
"parameters": {
"amount": 0.57795,
"blend_type": 11
},
"type": "blend"
},
{
"name": "voronoi",
"node_position": {
"x": -1099,
"y": -697
},
"parameters": {
"intensity": 1,
"randomness": 0.79,
"scale_x": 4,
"scale_y": 4,
"stretch_x": 1,
"stretch_y": 1
},
"type": "voronoi"
},
{
"name": "colorize_3",
"node_position": {
"x": -489,
"y": -511
},
"parameters": {
"gradient": {
"interpolation": 1,
"points": [
{
"a": 0,
"b": 0,
"g": 0,
"pos": 0,
"r": 0
},
{
"a": 1,
"b": 0.20187,
"g": 0.401783,
"pos": 0.709091,
"r": 0.447917
},
{
"a": 1,
"b": 0.091117,
"g": 0.901042,
"pos": 1,
"r": 0.825111
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "blend_3",
"node_position": {
"x": -15,
"y": -435
},
"parameters": {
"amount": 0.365625,
"blend_type": 8
},
"type": "blend"
},
{
"name": "gaussian_blur",
"node_position": {
"x": -611.25,
"y": -39
},
"parameters": {
"param0": 6,
"param1": 0.05,
"param2": 0
},
"type": "gaussian_blur"
},
{
"name": "perlin",
"node_position": {
"x": -1175.75,
"y": 10
},
"parameters": {
"iterations": 6,
"persistence": 0.8,
"scale_x": 32,
"scale_y": 32
},
"type": "perlin"
}
],
"parameters": {
},
"type": "graph"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/grass_albedo.png-796bd8ada2af644af45613a6e89a2163.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://data/voxel_textures/grass_albedo.png"
dest_files=[ "res://.import/grass_albedo.png-796bd8ada2af644af45613a6e89a2163.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=false
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

View File

@ -38,7 +38,7 @@
}
],
"label": "Graph",
"name": "@@1045",
"name": "1045",
"node_position": {
"x": 0,
"y": 0
@ -64,7 +64,7 @@
"metallic": 1,
"normal_scale": 1,
"roughness": 1,
"size": 7,
"size": 6,
"subsurf_scatter_strength": 0
},
"type": "material"
@ -78,8 +78,8 @@
"parameters": {
"intensity": 1,
"randomness": 0.95,
"scale_x": 14,
"scale_y": 14,
"scale_x": 7,
"scale_y": 7,
"stretch_x": 1,
"stretch_y": 1
},
@ -129,7 +129,7 @@
"y": 62.5
},
"parameters": {
"size": 7,
"size": 6,
"suffix": "albedo"
},
"type": "export"
@ -172,31 +172,31 @@
"points": [
{
"a": 1,
"b": 0.072917,
"g": 0.06527,
"b": 0,
"g": 0,
"pos": 0,
"r": 0.065748
"r": 0
},
{
"a": 1,
"b": 0.203125,
"g": 0.155957,
"b": 0.15625,
"g": 0.138108,
"pos": 0.2,
"r": 0.140235
"r": 0.132061
},
{
"a": 1,
"b": 0.713542,
"g": 0.587046,
"b": 0.473958,
"g": 0.418338,
"pos": 0.590909,
"r": 0.460551
"r": 0.362717
},
{
"a": 1,
"b": 0.927083,
"g": 0.921296,
"b": 0.729167,
"g": 0.721884,
"pos": 0.709091,
"r": 0.880787
"r": 0.670906
},
{
"a": 1,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 9.0 KiB

View File

@ -38,7 +38,7 @@
}
],
"label": "Graph",
"name": "@@1045",
"name": "1045",
"node_position": {
"x": 0,
"y": 0
@ -64,7 +64,7 @@
"metallic": 1,
"normal_scale": 1,
"roughness": 1,
"size": 7,
"size": 6,
"subsurf_scatter_strength": 0
},
"type": "material"
@ -72,14 +72,14 @@
{
"name": "voronoi",
"node_position": {
"x": -646.5,
"y": -294.5
"x": -704.5,
"y": -297.5
},
"parameters": {
"intensity": 1,
"randomness": 0.95,
"scale_x": 8,
"scale_y": 8,
"scale_x": 4,
"scale_y": 4,
"stretch_x": 1,
"stretch_y": 1
},
@ -106,7 +106,7 @@
"a": 1,
"b": 1,
"g": 1,
"pos": 0.063636,
"pos": 0.154545,
"r": 1
},
{
@ -129,7 +129,7 @@
"y": 62.5
},
"parameters": {
"size": 7,
"size": 6,
"suffix": "albedo"
},
"type": "export"
@ -163,8 +163,8 @@
{
"name": "colorize_2",
"node_position": {
"x": 220.5,
"y": -169.5
"x": 225.5,
"y": -170.5
},
"parameters": {
"gradient": {
@ -172,45 +172,38 @@
"points": [
{
"a": 1,
"b": 0.072917,
"g": 0.06527,
"b": 0.098958,
"g": 0.075238,
"pos": 0,
"r": 0.065748
"r": 0.076721
},
{
"a": 1,
"b": 0.145833,
"g": 0.092853,
"b": 0.088542,
"g": 0.071298,
"pos": 0.2,
"r": 0.075192
"r": 0.06555
},
{
"a": 1,
"b": 0.776042,
"g": 0.637013,
"pos": 0.609091,
"r": 0.458262
"b": 0.46875,
"g": 0.42603,
"pos": 0.578572,
"r": 0.29787
},
{
"a": 1,
"b": 0.927083,
"g": 0.921296,
"pos": 0.709091,
"r": 0.880787
"b": 0.582013,
"g": 0.671953,
"pos": 0.672727,
"r": 0.692708
},
{
"a": 1,
"b": 0.796875,
"g": 0.796875,
"b": 0.236092,
"g": 0.296875,
"pos": 1,
"r": 0.796875
},
{
"a": 1,
"b": 1,
"g": 1,
"pos": 1,
"r": 1
"r": 0.27978
}
],
"type": "Gradient"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

@ -50,7 +50,7 @@
}
],
"label": "Graph",
"name": "@@49",
"name": "49",
"node_position": {
"x": 0,
"y": 0
@ -76,7 +76,7 @@
"metallic": 1,
"normal_scale": 1,
"roughness": 1,
"size": 7,
"size": 6,
"subsurf_scatter_strength": 0
},
"type": "material"
@ -227,7 +227,7 @@
"y": -33.25
},
"parameters": {
"size": 7,
"size": 6,
"suffix": "albedo"
},
"type": "export"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

View File

@ -62,7 +62,7 @@ use_threads = false
max_concurrent_generations = 1
library = ExtResource( 2 )
level_generator = SubResource( 1 )
voxel_scale = 6.0
voxel_scale = 2.0
chunk_spawn_range = 3
script = ExtResource( 8 )