From 88fdf66db3dfc1c761860f1b18254a239e0e64e6 Mon Sep 17 00:00:00 2001 From: cel Date: Sun, 17 Jul 2022 07:11:45 +0100 Subject: fix ball bug --- godot/scenes/levels/MainMenu.tscn | 52 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) (limited to 'godot/scenes/levels') diff --git a/godot/scenes/levels/MainMenu.tscn b/godot/scenes/levels/MainMenu.tscn index a91b3fa..b06a027 100644 --- a/godot/scenes/levels/MainMenu.tscn +++ b/godot/scenes/levels/MainMenu.tscn @@ -1,10 +1,54 @@ -[gd_scene load_steps=5 format=2] +[gd_scene load_steps=10 format=2] [ext_resource path="res://scenes/Menu.tscn" type="PackedScene" id=1] [ext_resource path="res://assets/game_objects/W8.gltf" type="PackedScene" id=2] [ext_resource path="res://scenes/Rotator.gd" type="Script" id=3] [ext_resource path="res://assets/sounds/main_menu.mp3" type="AudioStream" id=4] +[sub_resource type="VisualShaderNodeColorConstant" id=2] +constant = Color( 0.0428785, 0.101562, 0.0362446, 1 ) + +[sub_resource type="VisualShader" id=3] +code = "shader_type spatial; +render_mode specular_schlick_ggx; + + + + +void vertex() { +// Output:0 + +} + +void fragment() { +// Color:2 + vec3 n_out2p0 = vec3(0.042878, 0.101562, 0.036245); + float n_out2p1 = 1.000000; + +// Output:0 + ALBEDO = n_out2p0; + +} + +void light() { +// Output:0 + +} +" +graph_offset = Vector2( 0, 75 ) +nodes/fragment/0/position = Vector2( 660, 200 ) +nodes/fragment/2/node = SubResource( 2 ) +nodes/fragment/2/position = Vector2( 240, 280 ) +nodes/fragment/connections = PoolIntArray( 2, 0, 0, 0 ) + +[sub_resource type="ShaderMaterial" id=4] +shader = SubResource( 3 ) + +[sub_resource type="PlaneMesh" id=1] +material = SubResource( 4 ) + +[sub_resource type="Skin" id=5] + [node name="MainMenu" type="Spatial"] [node name="Menu" parent="." instance=ExtResource( 1 )] @@ -18,3 +62,9 @@ transform = Transform( 1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 5, 0 [node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."] stream = ExtResource( 4 ) autoplay = true + +[node name="Background" type="MeshInstance" parent="."] +transform = Transform( 10, 0, 0, 0, 1, 0, 0, 0, 10, 0, -3.21632, 0 ) +mesh = SubResource( 1 ) +skin = SubResource( 5 ) +material/0 = null -- cgit