Rewritten nebula shader
This commit is contained in:
parent
bef15301cb
commit
0c684417f5
5 changed files with 42 additions and 21 deletions
|
|
@ -1,7 +1,7 @@
|
|||
[gd_scene load_steps=9 format=3 uid="uid://s14kegpsyost"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/menu/MainMenu.gd" id="1_2wax0"]
|
||||
[ext_resource type="Shader" uid="uid://f6lhks6rp5jw" path="res://testicles.tres" id="1_on8wy"]
|
||||
[ext_resource type="Shader" uid="uid://f6lhks6rp5jw" path="res://shaders/testicles.tres" id="1_on8wy"]
|
||||
[ext_resource type="Gradient" uid="uid://c6bcjydbwm5id" path="res://scenes/SpaceGradient.tres" id="2_7racd"]
|
||||
[ext_resource type="PackedScene" uid="uid://dpggye27ln436" path="res://scenes/StarsController.tscn" id="4_g7254"]
|
||||
[ext_resource type="Script" path="res://scripts/menu/MainMenuButton.gd" id="5_q6x10"]
|
||||
|
|
|
|||
|
|
@ -7,23 +7,21 @@
|
|||
[ext_resource type="PackedScene" uid="uid://dbtrc26016xov" path="res://scenes/Base.tscn" id="5_bjt5p"]
|
||||
[ext_resource type="PackedScene" uid="uid://523dme3h6d6c" path="res://scenes/npcships/NPCShipDefault.tscn" id="6_67746"]
|
||||
[ext_resource type="Script" path="res://scripts/misc/FactionRecoloring.gd" id="7_w8i61"]
|
||||
[ext_resource type="Shader" uid="uid://f6lhks6rp5jw" path="res://testicles.tres" id="9_h8ucp"]
|
||||
[ext_resource type="Gradient" uid="uid://c6bcjydbwm5id" path="res://scenes/SpaceGradient.tres" id="10_ijadn"]
|
||||
[ext_resource type="Shader" path="res://shaders/nebula.gdshader" id="8_3swn8"]
|
||||
[ext_resource type="Script" path="res://scripts/nebula.gd" id="9_utirt"]
|
||||
|
||||
[sub_resource type="FastNoiseLite" id="FastNoiseLite_tgq2a"]
|
||||
noise_type = 3
|
||||
frequency = 0.001
|
||||
[sub_resource type="FastNoiseLite" id="FastNoiseLite_n2xxx"]
|
||||
|
||||
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_43qve"]
|
||||
width = 4096
|
||||
height = 4096
|
||||
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_lcrcg"]
|
||||
seamless = true
|
||||
color_ramp = ExtResource("10_ijadn")
|
||||
noise = SubResource("FastNoiseLite_tgq2a")
|
||||
noise = SubResource("FastNoiseLite_n2xxx")
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_s2aaw"]
|
||||
shader = ExtResource("9_h8ucp")
|
||||
shader_parameter/penis = SubResource("NoiseTexture2D_43qve")
|
||||
shader = ExtResource("8_3swn8")
|
||||
shader_parameter/divisor = 10000.0
|
||||
shader_parameter/offset = Vector2(0, 0)
|
||||
shader_parameter/nebula_color = Color(0.0666667, 0.0666667, 0.188235, 1)
|
||||
shader_parameter/noise_texture = SubResource("NoiseTexture2D_lcrcg")
|
||||
|
||||
[node name="Space" type="Node2D"]
|
||||
process_mode = 3
|
||||
|
|
@ -78,14 +76,6 @@ position = Vector2(1877, -168)
|
|||
[node name="DefaultShip12" parent="EnemyFaction" instance=ExtResource("6_67746")]
|
||||
position = Vector2(1212, 518)
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
z_index = -20
|
||||
material = SubResource("ShaderMaterial_s2aaw")
|
||||
offset_left = -4096.0
|
||||
offset_top = -4096.0
|
||||
offset_right = 4096.0
|
||||
offset_bottom = 4096.0
|
||||
|
||||
[node name="Bases" type="Node2D" parent="."]
|
||||
script = ExtResource("7_w8i61")
|
||||
|
||||
|
|
@ -107,3 +97,15 @@ type = 3
|
|||
position = Vector2(386, 432)
|
||||
rotation = -2.31102
|
||||
type = 2
|
||||
|
||||
[node name="Background" type="CanvasLayer" parent="."]
|
||||
layer = -1
|
||||
|
||||
[node name="Nebula" type="ColorRect" parent="Background"]
|
||||
material = SubResource("ShaderMaterial_s2aaw")
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("9_utirt")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue