Tweaks to the sheared tile.

This commit is contained in:
Relintai 2021-12-14 18:14:19 +01:00
parent d24add3723
commit 239e9ebb10
3 changed files with 11 additions and 11 deletions

View File

@ -13,10 +13,10 @@ vertices = PoolVector2Array( 33.0681, 0, 64, 16.783, 33.3373, 32, 0, 16.9176 )
polygons = [ PoolIntArray( 0, 1, 2, 3 ) ]
[sub_resource type="OccluderPolygon2D" id=3]
polygon = PoolVector2Array( 0, 0, 32, 16.2446, 32, 64, 0, 48.4112 )
polygon = PoolVector2Array( 0, 0, 32, 16.9714, 32, 96, 0, 79.6356 )
[sub_resource type="ConvexPolygonShape2D" id=2]
points = PoolVector2Array( 0, 0, 32, 16.1101, 32, 64, 0, 48.4112 )
points = PoolVector2Array( 0, 0, 32, 16.6484, 32, 96, 0, 79.151 )
[sub_resource type="FastnoiseNoiseParams" id=1]
frequency = 0.02
@ -56,15 +56,15 @@ noise = SubResource( 1 )
1/z_index = 0
2/name = "dirt_shear.png 2"
2/texture = ExtResource( 3 )
2/tex_offset = Vector2( 0, 31 )
2/tex_offset = Vector2( 0, 63 )
2/modulate = Color( 1, 1, 1, 1 )
2/region = Rect2( 0, 0, 32, 64 )
2/region = Rect2( 0, 0, 32, 96 )
2/tile_mode = 0
2/occluder_offset = Vector2( 0, 31 )
2/occluder_offset = Vector2( 0, 63 )
2/occluder = SubResource( 3 )
2/navigation_offset = Vector2( 0, 31 )
2/shape_offset = Vector2( 0, 31 )
2/shape_transform = Transform2D( 1, 0, 0, 1, 0, 31 )
2/navigation_offset = Vector2( 0, 63 )
2/shape_offset = Vector2( 0, 63 )
2/shape_transform = Transform2D( 1, 0, 0, 1, 0, 63 )
2/shape = SubResource( 2 )
2/shape_one_way = false
2/shape_one_way_margin = 1.0
@ -73,6 +73,6 @@ noise = SubResource( 1 )
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 2 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 31 )
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 63 )
} ]
2/z_index = 1

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

View File

@ -7,9 +7,9 @@
script = ExtResource( 1 )
input = ExtResource( 2 )
output_image_name = "dirt_shear"
shear_amount = 0.295
shear_amount = 0.19
image_count = 1
image_size_x = 32
image_size_y = 64
image_size_y = 96
alpha_crop = true
generate = false