From e709b3f4d9f709b8545a0ae057cbf7d490c93063 Mon Sep 17 00:00:00 2001 From: betalars Date: Thu, 18 Jan 2024 13:27:54 +0100 Subject: [PATCH] Revert "ignoring non essential files" This reverts commit 227682dd5b0807c467265f003017cf65070d6082. --- .gitignore | 5 ----- default_env.tres | 18 ++++++++++++++++++ main.tscn | 21 +++++++++++++++++++++ project.godot | 20 ++++++++++++++++++++ 4 files changed, 59 insertions(+), 5 deletions(-) create mode 100644 default_env.tres create mode 100644 main.tscn create mode 100644 project.godot diff --git a/.gitignore b/.gitignore index 2e2e14c..816f7ac 100644 --- a/.gitignore +++ b/.gitignore @@ -6,8 +6,3 @@ export_presets.cfg # Mono-specific ignores .mono/ - -# Ignoring Project Files -main.tscn -default_env.tres -project.godot \ No newline at end of file diff --git a/default_env.tres b/default_env.tres new file mode 100644 index 0000000..0f8c712 --- /dev/null +++ b/default_env.tres @@ -0,0 +1,18 @@ +[gd_resource type="Environment" load_steps=2 format=2] + +[sub_resource type="ProceduralSky" id=1] +radiance_size = 4 +sky_top_color = Color( 0.0470588, 0.454902, 0.976471, 1 ) +sky_horizon_color = Color( 0.556863, 0.823529, 0.909804, 1 ) +sky_curve = 0.25 +ground_bottom_color = Color( 0.101961, 0.145098, 0.188235, 1 ) +ground_horizon_color = Color( 0.482353, 0.788235, 0.952941, 1 ) +ground_curve = 0.01 +sun_energy = 16.0 + +[resource] +background_mode = 2 +background_sky = SubResource( 1 ) +fog_height_min = 0.0 +fog_height_max = 100.0 +ssao_quality = 0 diff --git a/main.tscn b/main.tscn new file mode 100644 index 0000000..19b75dd --- /dev/null +++ b/main.tscn @@ -0,0 +1,21 @@ +[gd_scene load_steps=5 format=3 uid="uid://03quolqd33yr"] + +[ext_resource type="Texture2D" uid="uid://mblnkohmbep2" path="res://line.png" id="1_f0p7k"] +[ext_resource type="Script" path="res://addons/LineRenderer/line_renderer.gd" id="2_c14b5"] + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_r4qrb"] +albedo_texture = ExtResource("1_f0p7k") + +[sub_resource type="ArrayMesh" id="ArrayMesh_c4ena"] + +[node name="Node3D" type="Node3D"] + +[node name="MeshInstance3D" type="MeshInstance3D" parent="."] +material_override = SubResource("StandardMaterial3D_r4qrb") +mesh = SubResource("ArrayMesh_c4ena") +script = ExtResource("2_c14b5") +startThickness = 1.0 +endThickness = 1.0 + +[node name="Camera3D" type="Camera3D" parent="MeshInstance3D"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 2.31369) diff --git a/project.godot b/project.godot new file mode 100644 index 0000000..db60419 --- /dev/null +++ b/project.godot @@ -0,0 +1,20 @@ +; Engine configuration file. +; It's best edited using the editor UI and not directly, +; since the parameters that go here are not all obvious. +; +; Format: +; [section] ; section goes between [] +; param=value ; assign values to parameters + +config_version=5 + +[application] + +config/name="LineRenderer Demo" +run/main_scene="res://main.tscn" +config/features=PackedStringArray("4.2") +config/icon="res://icon.png" + +[rendering] + +environment/default_environment="res://default_env.tres"