diff --git a/MainScript.cs b/MainScript.cs index 1e61c58..6e7ad21 100644 --- a/MainScript.cs +++ b/MainScript.cs @@ -100,6 +100,10 @@ public partial class MainScript : Node2D this._stars.Add(star_config.id, star); } + var viewport = GetNode("/root/Projection").GetViewport(); + viewport.ScreenSpaceAA = Viewport.ScreenSpaceAAEnum.Smaa; + viewport.SetMsaa2D(Viewport.Msaa.Msaa4X); + var _background = projection.GetNode("Background"); foreach (Node child in projection.GetChildren()) diff --git a/Projection.cs b/Projection.cs index a10e9d6..4074e56 100644 --- a/Projection.cs +++ b/Projection.cs @@ -95,8 +95,10 @@ public partial class Projection : Window star.Sprite.Rotation += (float)(((2*3.14159265)*(activeRot / 365)) * delta); star.Sprite.Position = activePos * this.GetSize(); star.Sprite.Scale = Vector2.One * activeScale; + } + } } diff --git a/StarSkyPresenter.pck b/StarSkyPresenter.pck new file mode 100644 index 0000000..5a09519 Binary files /dev/null and b/StarSkyPresenter.pck differ diff --git a/StarSkyPresenter.sh b/StarSkyPresenter.sh new file mode 100755 index 0000000..dbd7739 --- /dev/null +++ b/StarSkyPresenter.sh @@ -0,0 +1,4 @@ +#!/bin/sh +printf '\033c\033]0;%s\a' StarSkyPresenter +base_path="$(dirname "$(realpath "$0")")" +"$base_path/StarSkyPresenter.x86_64" "$@" diff --git a/StarSkyPresenter.x86_64 b/StarSkyPresenter.x86_64 new file mode 100755 index 0000000..0c2d1c5 Binary files /dev/null and b/StarSkyPresenter.x86_64 differ diff --git a/config.yaml b/config.yaml index f39f80d..2b0fc0e 100644 --- a/config.yaml +++ b/config.yaml @@ -2,8 +2,8 @@ stars: - id: star-1 x: 0.1 y: 0.1 - scale: 5 - rot: 5 + scale: 7 + rot: 0 image: nice-star-1.png background: background-01.jpg frameRate: 30 \ No newline at end of file diff --git a/node_2d.tscn b/node_2d.tscn index 8439d26..35bbc2b 100644 --- a/node_2d.tscn +++ b/node_2d.tscn @@ -60,6 +60,9 @@ offset_bottom = 8.0 text = "Load Config" [node name="Projection" type="Window" parent="."] +msaa_2d = 3 +screen_space_aa = 2 +use_taa = true oversampling_override = 1.0 position = Vector2i(0, 36) size = Vector2i(1920, 1080) diff --git a/project.godot b/project.godot index 0975254..c47afc9 100644 --- a/project.godot +++ b/project.godot @@ -22,3 +22,9 @@ window/subwindows/embed_subwindows=false [dotnet] project/assembly_name="StarSkyPresenter" + +[rendering] + +anti_aliasing/quality/msaa_2d=3 +anti_aliasing/quality/screen_space_aa=2 +anti_aliasing/quality/use_taa=true diff --git a/scenes.yaml b/scenes.yaml index 3026c76..e2ad8d5 100644 --- a/scenes.yaml +++ b/scenes.yaml @@ -1,6 +1,6 @@ - stars: star-1: - x: 1.1 + x: 0.75 y: 1.1 transition: t: 5 @@ -11,7 +11,7 @@ - stars: star-1: x: 0.5 - y: 0.5 + y: 0.8 transition: t: 5 fade_in: false