[gd_scene load_steps=34 format=2]

[ext_resource path="res://Scenes/RandomOffset.gd" type="Script" id=1]
[ext_resource path="res://Scenes/RandomAngle.gd" type="Script" id=2]
[ext_resource path="res://Scenes/RandomizeColors.gd" type="Script" id=3]
[ext_resource path="res://Scenes/UpdateRNG.gd" type="Script" id=4]
[ext_resource path="res://Assets/Alien/daniel-olah-pCcGpVsOHoo-unsplash.jpg" type="Texture" id=5]
[ext_resource path="res://Assets/Alien/pawel-czerwinski-ruJm3dBXCqw-unsplash.jpg" type="Texture" id=6]
[ext_resource path="res://Assets/Alien/daniel-olah-VS_kFx4yF5g-unsplash.jpg" type="Texture" id=7]
[ext_resource path="res://BitwiseShaders/SIsCi.jpg" type="Texture" id=8]
[ext_resource path="res://Assets/Alien/alexandre-debieve-Wv_YC0dRF5c-unsplash.jpg" type="Texture" id=9]
[ext_resource path="res://BitwiseShaders/BitwiseTest.tres" type="Material" id=10]
[ext_resource path="res://Assets/Alien/eberhard-grossgasteiger-xC7Ho08RYF4-unsplash.jpg" type="Texture" id=11]
[ext_resource path="res://Assets/Alien/pawel-czerwinski-8uZPynIu-rQ-unsplash.jpg" type="Texture" id=12]
[ext_resource path="res://Assets/Alien/pawel-czerwinski-Lki74Jj7H-U-unsplash.jpg" type="Texture" id=13]
[ext_resource path="res://Assets/Shapes/Square.png" type="Texture" id=14]
[ext_resource path="res://Assets/ambient/drone.ogg" type="AudioStream" id=15]
[ext_resource path="res://Assets/ambient/noise.ogg" type="AudioStream" id=16]
[ext_resource path="res://Assets/Alien/jael-vallee-OU7yRvQcryw-unsplash.jpg" type="Texture" id=17]
[ext_resource path="res://Scenes/3DView/PlanetView.tscn" type="PackedScene" id=18]
[ext_resource path="res://Assets/Fonts/TSTAR Mono Round W00 Regular.ttf" type="DynamicFontData" id=19]
[ext_resource path="res://BitwiseShaders/BitwiseOp.gdshader" type="Shader" id=20]

[sub_resource type="ShaderMaterial" id=1]
shader = ExtResource( 20 )
shader_param/operation = null
shader_param/premult = Color( 0.67451, 0.67451, 0.67451, 1 )
shader_param/opref = ExtResource( 8 )

[sub_resource type="ShaderMaterial" id=2]
shader = ExtResource( 20 )
shader_param/operation = null
shader_param/premult = Color( 0.254902, 0.827451, 0.827451, 1 )
shader_param/opref = ExtResource( 8 )

[sub_resource type="ShaderMaterial" id=3]
shader = ExtResource( 20 )
shader_param/operation = 1
shader_param/premult = Color( 1, 1, 1, 1 )
shader_param/opref = ExtResource( 8 )

[sub_resource type="ShaderMaterial" id=4]
shader = ExtResource( 20 )
shader_param/operation = null
shader_param/premult = Color( 0.552941, 0.792157, 0.698039, 1 )
shader_param/opref = ExtResource( 8 )

[sub_resource type="ShaderMaterial" id=5]
shader = ExtResource( 20 )
shader_param/operation = null
shader_param/premult = Color( 0.780392, 0.780392, 0.780392, 1 )
shader_param/opref = ExtResource( 8 )

[sub_resource type="ShaderMaterial" id=6]
shader = ExtResource( 20 )
shader_param/operation = null
shader_param/premult = Color( 0.74902, 0.854902, 0.576471, 1 )
shader_param/opref = ExtResource( 8 )

[sub_resource type="ShaderMaterial" id=7]
shader = ExtResource( 20 )
shader_param/operation = 2
shader_param/premult = Color( 0.996078, 1, 0.486275, 1 )
shader_param/opref = ExtResource( 8 )

[sub_resource type="ShaderMaterial" id=8]
shader = ExtResource( 20 )
shader_param/operation = 1
shader_param/premult = Color( 0.631373, 0.631373, 0.631373, 1 )
shader_param/opref = ExtResource( 8 )

[sub_resource type="Shader" id=13]
code = "shader_type canvas_item;
uniform vec4 new_red : hint_color;
uniform vec4 new_blue : hint_color;
uniform vec4 new_green : hint_color;


void fragment(){
	vec3 input = texture(SCREEN_TEXTURE, SCREEN_UV).rgb;
	vec3 output = vec3(0.0);
	output += new_red.rgb * input.r;
	output += new_blue.rgb * input.b;
	output += new_green.rgb * input.g;
	
	COLOR.rgb = output;
}"

[sub_resource type="ShaderMaterial" id=14]
shader = SubResource( 13 )
shader_param/new_red = Color( 0.819608, 0.721569, 0.509804, 1 )
shader_param/new_blue = Color( 0.772549, 0.564706, 0.360784, 1 )
shader_param/new_green = Color( 0.47451, 0.945098, 0.537255, 1 )

[sub_resource type="CanvasItemMaterial" id=11]
blend_mode = 3

[sub_resource type="ViewportTexture" id=16]
viewport_path = NodePath("SceneComposition/Viewport")

[sub_resource type="DynamicFont" id=15]
font_data = ExtResource( 19 )

[node name="Main" type="Node2D"]
script = ExtResource( 4 )
__meta__ = {
"_edit_horizontal_guides_": [ -972.0 ]
}

[node name="ImageGeneration" type="Node2D" parent="."]
position = Vector2( 960, 540 )
scale = Vector2( 0.549072, 0.549072 )

[node name="CanvasLayer6" type="CanvasLayer" parent="ImageGeneration"]

[node name="Spinner" type="Node2D" parent="ImageGeneration/CanvasLayer6"]
position = Vector2( 479, 510 )
script = ExtResource( 2 )

[node name="old image" type="Sprite" parent="ImageGeneration/CanvasLayer6/Spinner"]
material = SubResource( 1 )
scale = Vector2( 0.999905, 0.999905 )
texture = ExtResource( 9 )
script = ExtResource( 1 )
rand_offset = Vector2( 600, 300 )

[node name="CanvasLayer3" type="CanvasLayer" parent="ImageGeneration"]

[node name="Spinner2" type="Node2D" parent="ImageGeneration/CanvasLayer3"]
position = Vector2( 479, 510 )
script = ExtResource( 2 )

[node name="Daniel-olah-VsKFx4yF5g-unsplash" type="Sprite" parent="ImageGeneration/CanvasLayer3/Spinner2"]
self_modulate = Color( 1, 1, 1, 0.247059 )
material = SubResource( 2 )
position = Vector2( 3.05176e-05, 0 )
scale = Vector2( 1.16406, 1.16406 )
texture = ExtResource( 7 )
script = ExtResource( 1 )
rand_offset = Vector2( 350, 800 )

[node name="CanvasLayer5" type="CanvasLayer" parent="ImageGeneration"]

[node name="Spinner3" type="Node2D" parent="ImageGeneration/CanvasLayer5"]
position = Vector2( 479, 510 )
script = ExtResource( 2 )

[node name="Jael-vallee-Ou7yRvQcryw-unsplash" type="Sprite" parent="ImageGeneration/CanvasLayer5/Spinner3"]
self_modulate = Color( 0.843137, 0.843137, 0.843137, 0.501961 )
material = SubResource( 3 )
scale = Vector2( 0.941826, 0.941826 )
texture = ExtResource( 17 )
script = ExtResource( 1 )
rand_offset = Vector2( 550, 250 )

[node name="CanvasLayer7" type="CanvasLayer" parent="ImageGeneration"]

[node name="Spinner4" type="Node2D" parent="ImageGeneration/CanvasLayer7"]
position = Vector2( 479, 510 )
script = ExtResource( 2 )

[node name="Pawel-czerwinski-8uZPynIu-rQ-unsplash" type="Sprite" parent="ImageGeneration/CanvasLayer7/Spinner4"]
self_modulate = Color( 1, 1, 1, 0.52549 )
material = SubResource( 4 )
position = Vector2( 12, -6 )
rotation = 1.5708
scale = Vector2( 0.964463, 0.964463 )
texture = ExtResource( 12 )
script = ExtResource( 1 )
rand_offset = Vector2( 650, 350 )

[node name="CanvasLayer2" type="CanvasLayer" parent="ImageGeneration"]

[node name="Spinner5" type="Node2D" parent="ImageGeneration/CanvasLayer2"]
position = Vector2( 479, 510 )
script = ExtResource( 2 )

[node name="Daniel-olah-pCcGpVsOHoo-unsplash" type="Sprite" parent="ImageGeneration/CanvasLayer2/Spinner5"]
self_modulate = Color( 1, 1, 1, 0.34902 )
material = ExtResource( 10 )
scale = Vector2( 0.868841, 0.868841 )
texture = ExtResource( 5 )
script = ExtResource( 1 )
rand_offset = Vector2( 250, 550 )

[node name="CanvasLayer" type="CanvasLayer" parent="ImageGeneration"]

[node name="Spinner7" type="Node2D" parent="ImageGeneration/CanvasLayer"]
position = Vector2( 479, 510 )
script = ExtResource( 2 )

[node name="Alexandre-debieve-WvYc0dRf5c-unsplash2" type="Sprite" parent="ImageGeneration/CanvasLayer/Spinner7"]
self_modulate = Color( 1, 1, 1, 0.333333 )
material = SubResource( 5 )
position = Vector2( -14, -10.0001 )
scale = Vector2( 0.982638, 0.982638 )
texture = ExtResource( 9 )
script = ExtResource( 1 )
rand_offset = Vector2( 650, 300 )

[node name="CanvasLayer8" type="CanvasLayer" parent="ImageGeneration"]

[node name="Spinner8" type="Node2D" parent="ImageGeneration/CanvasLayer8"]
position = Vector2( 479, 510 )
script = ExtResource( 2 )

[node name="Pawel-czerwinski-Lki74Jj7h-U-unsplash" type="Sprite" parent="ImageGeneration/CanvasLayer8/Spinner8"]
self_modulate = Color( 1, 1, 1, 0.670588 )
material = SubResource( 6 )
position = Vector2( 6.10352e-05, 9.99997 )
scale = Vector2( 0.894264, 0.894264 )
texture = ExtResource( 13 )
script = ExtResource( 1 )
rand_offset = Vector2( 600, 300 )

[node name="CanvasLayer4" type="CanvasLayer" parent="ImageGeneration"]

[node name="Spinner6" type="Node2D" parent="ImageGeneration/CanvasLayer4"]
position = Vector2( 479, 510 )
script = ExtResource( 2 )

[node name="Eberhard-grossgasteiger-xC7Ho08ryf4-unsplash" type="Sprite" parent="ImageGeneration/CanvasLayer4/Spinner6"]
self_modulate = Color( 1, 1, 1, 0.333333 )
material = SubResource( 7 )
scale = Vector2( 0.986458, 0.986458 )
texture = ExtResource( 11 )
script = ExtResource( 1 )
rand_offset = Vector2( 580, 320 )

[node name="CanvasLayer9" type="CanvasLayer" parent="ImageGeneration"]

[node name="Spinner7" type="Node2D" parent="ImageGeneration/CanvasLayer9"]
position = Vector2( 479, 510 )
script = ExtResource( 2 )

[node name="Pawel-czerwinski-ruJm3dBxCqw-unsplash" type="Sprite" parent="ImageGeneration/CanvasLayer9/Spinner7"]
self_modulate = Color( 1, 1, 1, 0.772549 )
material = SubResource( 8 )
position = Vector2( 9.00024, 0 )
rotation = -1.5708
scale = Vector2( 0.905003, 0.905003 )
texture = ExtResource( 6 )
script = ExtResource( 1 )
rand_offset = Vector2( 600, 330 )

[node name="SceneComposition" type="CanvasLayer" parent="."]
layer = 2

[node name="Border" type="Node2D" parent="SceneComposition"]
position = Vector2( 479, 510 )
scale = Vector2( 0.412713, 0.412713 )

[node name="CBB1" type="Sprite" parent="SceneComposition/Border"]
self_modulate = Color( 0, 0, 0, 1 )
position = Vector2( -885.5, -10.4999 )
scale = Vector2( 3.14063, 6.98828 )
texture = ExtResource( 14 )

[node name="CBB2" type="Sprite" parent="SceneComposition/Border"]
self_modulate = Color( 0, 0, 0, 1 )
position = Vector2( 957.5, 27.0001 )
scale = Vector2( 3.44531, 6.98828 )
texture = ExtResource( 14 )

[node name="CBB3" type="Sprite" parent="SceneComposition/Border"]
self_modulate = Color( 0, 0, 0, 1 )
position = Vector2( 164.763, -969.196 )
scale = Vector2( 11.8086, 3.57031 )
texture = ExtResource( 14 )

[node name="CBB4" type="Sprite" parent="SceneComposition/Border"]
self_modulate = Color( 0, 0, 0, 1 )
position = Vector2( 157.495, 983.734 )
scale = Vector2( 11.8086, 3.82031 )
texture = ExtResource( 14 )

[node name="ColorCorrection" type="ColorRect" parent="SceneComposition/Border"]
material = SubResource( 14 )
margin_left = -499.136
margin_top = -518.52
margin_right = 537.864
margin_bottom = 491.48
script = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}

[node name="PlanetOverlay" type="TextureRect" parent="SceneComposition"]
material = SubResource( 11 )
margin_left = 210.0
margin_top = 228.0
margin_right = 760.0
margin_bottom = 778.0
texture = SubResource( 16 )
expand = true
flip_v = true
__meta__ = {
"_edit_use_anchors_": false
}

[node name="Credits" type="Label" parent="SceneComposition"]
margin_right = 114.0
margin_bottom = 39.0
custom_fonts/font = SubResource( 15 )
text = "Planet generator by Ash K

Creative Commons pictures by:
Eberhard Grossgasteiger
Alexandre Debiève
Pawel Czerwinski
Daniel Olah
Jaël Vallée

Creative Commons sounds by:
Moulaythami
revolt2563"
__meta__ = {
"_edit_use_anchors_": false
}

[node name="Viewport" type="Viewport" parent="SceneComposition"]
size = Vector2( 1000, 1000 )

[node name="Spatial" parent="SceneComposition/Viewport" instance=ExtResource( 18 )]

[node name="MusicPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 15 )
autoplay = true

[node name="NoisePlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 16 )
volume_db = -7.0
autoplay = true
