diff --git a/Aperture_Science_logo_cercle-3962497901.png b/Aperture_Science_logo_cercle-3962497901.png new file mode 100644 index 0000000..effb07c Binary files /dev/null and b/Aperture_Science_logo_cercle-3962497901.png differ diff --git a/Aperture_Science_logo_cercle-3962497901.png.import b/Aperture_Science_logo_cercle-3962497901.png.import new file mode 100644 index 0000000..63d290a --- /dev/null +++ b/Aperture_Science_logo_cercle-3962497901.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dbvpr64gra7yk" +path.s3tc="res://.godot/imported/Aperture_Science_logo_cercle-3962497901.png-a7fcde5444130e98d49d00b7921d23f6.s3tc.ctex" +metadata={ +"imported_formats": ["s3tc_bptc"], +"vram_texture": true +} + +[deps] + +source_file="res://Aperture_Science_logo_cercle-3962497901.png" +dest_files=["res://.godot/imported/Aperture_Science_logo_cercle-3962497901.png-a7fcde5444130e98d49d00b7921d23f6.s3tc.ctex"] + +[params] + +compress/mode=2 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=true +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=0 diff --git a/node_3d.tscn b/node_3d.tscn index 7279051..872f274 100644 --- a/node_3d.tscn +++ b/node_3d.tscn @@ -3,6 +3,7 @@ [ext_resource type="Script" path="res://player_move.gd" id="1_3w378"] [ext_resource type="Shader" path="res://node_3d.gdshader" id="1_bq3vy"] [ext_resource type="Script" path="res://player_cam.gd" id="2_cfjd0"] +[ext_resource type="Texture2D" uid="uid://dbvpr64gra7yk" path="res://Aperture_Science_logo_cercle-3962497901.png" id="3_vg2la"] [sub_resource type="BoxShape3D" id="BoxShape3D_xx3kl"] size = Vector3(100, 0.1, 100) @@ -20,10 +21,8 @@ size = Vector3(100, 0.1, 100) [sub_resource type="CapsuleMesh" id="CapsuleMesh_hyrp0"] -[sub_resource type="ImageTexture" id="ImageTexture_bll23"] - -[sub_resource type="ORMMaterial3D" id="ORMMaterial3D_y47wq"] -albedo_texture = SubResource("ImageTexture_bll23") +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_wm6qp"] +albedo_texture = ExtResource("3_vg2la") [node name="Node3D" type="Node3D"] @@ -45,10 +44,9 @@ shape = SubResource("CapsuleShape3D_fla64") [node name="MeshInstance3D" type="MeshInstance3D" parent="player"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0) mesh = SubResource("CapsuleMesh_hyrp0") -surface_material_override/0 = SubResource("ORMMaterial3D_y47wq") +surface_material_override/0 = SubResource("StandardMaterial3D_wm6qp") [node name="Camera3D" type="Camera3D" parent="."] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0) script = ExtResource("2_cfjd0") [node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] diff --git a/player_cam.gd b/player_cam.gd index 7b76be5..9778b33 100644 --- a/player_cam.gd +++ b/player_cam.gd @@ -15,5 +15,6 @@ func _process(delta): position.y = move_toward(position.y, player.position.y + cam_distance + player_height/2., cam_speed * delta) position.z = move_toward(position.z, player.position.z + cam_distance, cam_speed*delta) position.x = move_toward(position.x, player.position.x, cam_speed* delta) - look_at(player.position + Vector3(0., player_height, 0.)) + look_at(player.rotation + Vector3(0., player_height, 0.)) + pass