Add dirt track "texture"

soundtrack
Ensar Sarajčić 2021-11-09 21:50:48 +01:00
parent c0075ab91c
commit c5d7850241
3 changed files with 61 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

View File

@ -0,0 +1,37 @@
[remap]
importer="texture"
type="StreamTexture"
path.s3tc="res://.import/dirttrack.png-083381fc44e646fa9111e81d122e1864.s3tc.stex"
path.etc2="res://.import/dirttrack.png-083381fc44e646fa9111e81d122e1864.etc2.stex"
metadata={
"imported_formats": [ "s3tc", "etc2" ],
"vram_texture": true
}
[deps]
source_file="res://assets/dirttrack.png"
dest_files=[ "res://.import/dirttrack.png-083381fc44e646fa9111e81d122e1864.s3tc.stex", "res://.import/dirttrack.png-083381fc44e646fa9111e81d122e1864.etc2.stex" ]
[params]
compress/mode=2
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=1
flags/repeat=true
flags/filter=true
flags/mipmaps=true
flags/anisotropic=false
flags/srgb=1
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=8 format=2] [gd_scene load_steps=11 format=2]
[ext_resource path="res://vehicles/buggy.tscn" type="PackedScene" id=1] [ext_resource path="res://vehicles/buggy.tscn" type="PackedScene" id=1]
[ext_resource path="res://player/camera.gd" type="Script" id=2] [ext_resource path="res://player/camera.gd" type="Script" id=2]
@ -18,6 +18,23 @@ _data = {
"tilts": PoolRealArray( 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ) "tilts": PoolRealArray( 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 )
} }
[sub_resource type="OpenSimplexNoise" id=5]
seed = -8
octaves = 9
period = 10.0
persistence = 0.49
lacunarity = 2.04
[sub_resource type="NoiseTexture" id=6]
flags = 39
seamless = true
noise = SubResource( 5 )
noise_offset = Vector2( -1, -1 )
[sub_resource type="SpatialMaterial" id=7]
albedo_color = Color( 0.4, 0.301961, 0.00784314, 1 )
albedo_texture = SubResource( 6 )
[node name="Spatial" type="Spatial"] [node name="Spatial" type="Spatial"]
[node name="StaticBody" type="StaticBody" parent="."] [node name="StaticBody" type="StaticBody" parent="."]
@ -38,6 +55,7 @@ mass = 250.0
[node name="camera" type="Camera" parent="."] [node name="camera" type="Camera" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5.88022, 23.0639 ) transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5.88022, 23.0639 )
far = 457.7
script = ExtResource( 2 ) script = ExtResource( 2 )
follow_target_path = NodePath("../buggy") follow_target_path = NodePath("../buggy")
target_distance = 12.0 target_distance = 12.0
@ -49,8 +67,9 @@ target_height = 6.0
curve = SubResource( 4 ) curve = SubResource( 4 )
[node name="Road" type="CSGPolygon" parent="Track/Path"] [node name="Road" type="CSGPolygon" parent="Track/Path"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.194962, 0.557852, -0.0180283 ) transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.194962, 0.721504, -0.0180283 )
use_collision = true use_collision = true
invert_faces = true
polygon = PoolVector2Array( -8, 0, 2, 0.1, 8, 0.1, 2, 0 ) polygon = PoolVector2Array( -8, 0, 2, 0.1, 8, 0.1, 2, 0 )
mode = 2 mode = 2
path_node = NodePath("..") path_node = NodePath("..")
@ -61,7 +80,8 @@ path_rotation = 2
path_local = false path_local = false
path_continuous_u = false path_continuous_u = false
path_u_distance = 1.0 path_u_distance = 1.0
path_joined = false path_joined = true
material = SubResource( 7 )
[node name="Slope" type="CSGPolygon" parent="Track/Path"] [node name="Slope" type="CSGPolygon" parent="Track/Path"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.131294, 0.632256, -0.0876541 ) transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.131294, 0.632256, -0.0876541 )
@ -76,4 +96,4 @@ path_rotation = 2
path_local = true path_local = true
path_continuous_u = true path_continuous_u = true
path_u_distance = 1.0 path_u_distance = 1.0
path_joined = false path_joined = true