minor edit to fix multicolor starfield
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
[gd_scene load_steps=5 format=3 uid="uid://c6f75hdvqpfaf"]
|
[gd_scene load_steps=7 format=3 uid="uid://c6f75hdvqpfaf"]
|
||||||
|
|
||||||
[ext_resource type="Material" uid="uid://bgb22q7b2j1st" path="res://src/multi-color-starfield/mc_starfield_material.tres" id="1_yileu"]
|
[ext_resource type="Material" uid="uid://bgb22q7b2j1st" path="res://src/multi-color-starfield/mc_starfield_material.tres" id="1_yileu"]
|
||||||
[ext_resource type="Shader" uid="uid://nfhuhvwogwqv" path="res://src/multi-color-starfield/multi_color_starfield.gdshader" id="2_mfsqn"]
|
[ext_resource type="Shader" uid="uid://nfhuhvwogwqv" path="res://src/multi-color-starfield/multi_color_starfield.gdshader" id="2_mfsqn"]
|
||||||
@@ -14,9 +14,16 @@ shader_parameter/upper_tolerance_for_star_color = 0.75
|
|||||||
shader_parameter/lower_tolerance_for_star_color = 0.25
|
shader_parameter/lower_tolerance_for_star_color = 0.25
|
||||||
shader_parameter/green_tolerance_for_star_color = 0.1
|
shader_parameter/green_tolerance_for_star_color = 0.1
|
||||||
|
|
||||||
|
[sub_resource type="FastNoiseLite" id="FastNoiseLite_mfsqn"]
|
||||||
|
frequency = 0.4171
|
||||||
|
|
||||||
|
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_2bx6i"]
|
||||||
|
noise = SubResource("FastNoiseLite_mfsqn")
|
||||||
|
|
||||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_2bx6i"]
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_2bx6i"]
|
||||||
shader = ExtResource("2_mfsqn")
|
shader = ExtResource("2_mfsqn")
|
||||||
shader_parameter/resolution = Vector2(1270, 720)
|
shader_parameter/resolution = Vector2(1270, 720)
|
||||||
|
shader_parameter/noise_texture = SubResource("NoiseTexture2D_2bx6i")
|
||||||
shader_parameter/density = 20.0
|
shader_parameter/density = 20.0
|
||||||
shader_parameter/speed_x = 0.005
|
shader_parameter/speed_x = 0.005
|
||||||
shader_parameter/speed_y = 0.0
|
shader_parameter/speed_y = 0.0
|
||||||
@@ -34,6 +41,7 @@ grow_horizontal = 2
|
|||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
|
|
||||||
[node name="ColorRect2" type="ColorRect" parent="."]
|
[node name="ColorRect2" type="ColorRect" parent="."]
|
||||||
|
visible = false
|
||||||
material = SubResource("ShaderMaterial_vs6nd")
|
material = SubResource("ShaderMaterial_vs6nd")
|
||||||
layout_mode = 0
|
layout_mode = 0
|
||||||
offset_right = 1270.0
|
offset_right = 1270.0
|
||||||
@@ -41,13 +49,13 @@ offset_bottom = 720.0
|
|||||||
color = Color(0, 0, 0, 1)
|
color = Color(0, 0, 0, 1)
|
||||||
|
|
||||||
[node name="MonoWhiteStarfield" type="ColorRect" parent="."]
|
[node name="MonoWhiteStarfield" type="ColorRect" parent="."]
|
||||||
|
visible = false
|
||||||
material = ExtResource("1_yileu")
|
material = ExtResource("1_yileu")
|
||||||
layout_mode = 0
|
layout_mode = 0
|
||||||
offset_right = 1270.0
|
offset_right = 1270.0
|
||||||
offset_bottom = 720.0
|
offset_bottom = 720.0
|
||||||
|
|
||||||
[node name="ColorRect" type="ColorRect" parent="."]
|
[node name="ColorRect" type="ColorRect" parent="."]
|
||||||
visible = false
|
|
||||||
material = SubResource("ShaderMaterial_2bx6i")
|
material = SubResource("ShaderMaterial_2bx6i")
|
||||||
layout_mode = 0
|
layout_mode = 0
|
||||||
offset_top = 2.0
|
offset_top = 2.0
|
||||||
|
|||||||
Reference in New Issue
Block a user