p5.tscn 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. [gd_scene load_steps=28 format=2]
  2. [ext_resource path="res://resources/low_poly_nature_scene/low_poly_nature_scene.tscn" type="PackedScene" id=1]
  3. [ext_resource path="res://resources/stone_ancient_window__door_frame_pbr/stone_ancient_window__door_frame_pbr.tscn" type="PackedScene" id=2]
  4. [ext_resource path="res://resources/scifi_hexsphere/sphere2.tscn" type="PackedScene" id=3]
  5. [ext_resource path="res://panorama/static/Moon.png" type="Texture" id=4]
  6. [ext_resource path="res://resources/pokeball/sphere5.tscn" type="PackedScene" id=5]
  7. [ext_resource path="res://resources/beach_ball/sphere4.tscn" type="PackedScene" id=6]
  8. [ext_resource path="res://resources/beautiful_sphere/sphere1.tscn" type="PackedScene" id=7]
  9. [ext_resource path="res://resources/spherical/sphere3.tscn" type="PackedScene" id=8]
  10. [ext_resource path="res://resources/button/button1.tscn" type="PackedScene" id=9]
  11. [ext_resource path="res://resources/button/button2.tscn" type="PackedScene" id=10]
  12. [ext_resource path="res://resources/button/button.tscn" type="PackedScene" id=11]
  13. [ext_resource path="res://panorama/shaders/p5.shader" type="Shader" id=12]
  14. [ext_resource path="res://panorama/static/p5.png" type="Texture" id=13]
  15. [sub_resource type="PanoramaSky" id=1]
  16. panorama = ExtResource( 13 )
  17. [sub_resource type="Environment" id=2]
  18. background_mode = 2
  19. background_sky = SubResource( 1 )
  20. [sub_resource type="ShaderMaterial" id=3]
  21. shader = ExtResource( 12 )
  22. shader_param/angle = Vector3( -0.3, 0, 0 )
  23. shader_param/iTime = null
  24. shader_param/iChannel0 = ExtResource( 4 )
  25. [sub_resource type="SphereMesh" id=4]
  26. flip_faces = true
  27. radius = 100.0
  28. height = 200.0
  29. [sub_resource type="Shader" id=5]
  30. code = "shader_type spatial;
  31. render_mode blend_mix,depth_draw_opaque,cull_back,diffuse_burley,specular_schlick_ggx,unshaded;
  32. uniform sampler2D fbo_texture;
  33. void fragment() {
  34. ALBEDO = texture(fbo_texture, SCREEN_UV).rgb;
  35. }"
  36. [sub_resource type="ShaderMaterial" id=6]
  37. resource_local_to_scene = true
  38. shader = SubResource( 5 )
  39. [sub_resource type="PlaneMesh" id=7]
  40. resource_local_to_scene = true
  41. flip_faces = true
  42. size = Vector2( 3.5, 5 )
  43. [sub_resource type="Shader" id=8]
  44. code = "shader_type spatial;
  45. render_mode blend_add,depth_draw_opaque,cull_back,unshaded;
  46. uniform vec4 colorx:hint_color;
  47. void fragment() {
  48. ALBEDO = 1.*colorx.rgb;
  49. float intensity = pow(0.122 + max(dot(NORMAL, normalize(VIEW)),0.), 010.85);
  50. ALPHA=0.0+intensity;
  51. }"
  52. [sub_resource type="ShaderMaterial" id=9]
  53. render_priority = 11
  54. shader = SubResource( 8 )
  55. shader_param/colorx = Color( 0.14902, 0.678431, 0.643137, 1 )
  56. [sub_resource type="SphereMesh" id=10]
  57. [sub_resource type="BoxShape" id=11]
  58. extents = Vector3( 1, 0.5, 1 )
  59. [sub_resource type="ShaderMaterial" id=12]
  60. render_priority = 11
  61. shader = SubResource( 8 )
  62. shader_param/colorx = Color( 0.678431, 0.521569, 0.14902, 1 )
  63. [sub_resource type="Shader" id=13]
  64. code = "shader_type spatial;
  65. render_mode blend_add,depth_draw_opaque,cull_back,unshaded;
  66. uniform vec4 colorx:hint_color;
  67. void fragment() {
  68. ALBEDO = 1.*colorx.rgb;
  69. float intensity = pow(0.122 + max(dot(NORMAL, normalize(VIEW)),0.), 010.85);
  70. ALPHA=0.0+intensity;
  71. }"
  72. [sub_resource type="ShaderMaterial" id=14]
  73. render_priority = 11
  74. shader = SubResource( 13 )
  75. shader_param/colorx = Color( 0.172549, 0.717647, 0.207843, 1 )
  76. [node name="p5" type="Spatial"]
  77. [node name="DirectionalLight" type="DirectionalLight" parent="."]
  78. transform = Transform( 1, 0, 0, 0, 0.642788, 0.766044, 0, -0.766044, 0.642788, 6.64654, 5.36431, -37.1819 )
  79. light_color = Color( 0.297165, 0.391123, 0.800781, 1 )
  80. shadow_enabled = true
  81. [node name="Camera" type="Camera" parent="."]
  82. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -1.55013, 1.58168, -19.7168 )
  83. cull_mask = 1
  84. environment = SubResource( 2 )
  85. [node name="sphere" type="MeshInstance" parent="Camera"]
  86. material_override = SubResource( 3 )
  87. mesh = SubResource( 4 )
  88. material/0 = null
  89. [node name="portals" type="Spatial" parent="."]
  90. [node name="a" type="Spatial" parent="portals"]
  91. transform = Transform( -1, 0, -3.25841e-07, 0, 1, 0, 3.25841e-07, 0, -1, 41.447, -0.899, -1.25 )
  92. [node name="stone_ancient_window__door_frame_pbr" parent="portals/a" instance=ExtResource( 2 )]
  93. [node name="low_poly_nature_scene" parent="portals/a" instance=ExtResource( 1 )]
  94. transform = Transform( -0.920505, -0.390731, -6.36581e-08, 0, -1.62921e-07, 1, -0.390731, 0.920505, 1.49969e-07, -9.04785, -2.21818, 2.38419e-06 )
  95. [node name="wall" type="Spatial" parent="portals/a"]
  96. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -9.04785, -2.21818, 2.38419e-06 )
  97. [node name="door_in" type="MeshInstance" parent="portals/a/wall"]
  98. transform = Transform( 0.00872632, 0.999962, -1.62914e-07, 0, -1.62921e-07, -1, -0.999962, 0.00872632, -1.4217e-09, 9.334, 4.871, 0.133 )
  99. material_override = SubResource( 6 )
  100. cast_shadow = 0
  101. mesh = SubResource( 7 )
  102. material/0 = null
  103. [node name="sun_pos" type="Spatial" parent="portals/a"]
  104. transform = Transform( -0.734879, 0, 0.678198, 0, 1, 0, -0.678198, 0, -0.734879, -6.971, 2.165, 6.3 )
  105. [node name="b0" type="Spatial" parent="portals/a/sun_pos"]
  106. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 1.3117, -1.27058, 0 )
  107. [node name="glow" type="MeshInstance" parent="portals/a/sun_pos/b0"]
  108. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.700528, 0 )
  109. layers = 3
  110. material_override = SubResource( 9 )
  111. mesh = SubResource( 10 )
  112. material/0 = null
  113. [node name="button" parent="portals/a/sun_pos/b0" instance=ExtResource( 11 )]
  114. [node name="Area_btn" type="Area" parent="portals/a/sun_pos/b0"]
  115. [node name="CollisionShape" type="CollisionShape" parent="portals/a/sun_pos/b0/Area_btn"]
  116. shape = SubResource( 11 )
  117. [node name="b1" type="Spatial" parent="portals/a/sun_pos"]
  118. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 3.686, -1.27, -0.81 )
  119. [node name="glow" type="MeshInstance" parent="portals/a/sun_pos/b1"]
  120. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.700528, 0 )
  121. layers = 3
  122. material_override = SubResource( 12 )
  123. mesh = SubResource( 10 )
  124. material/0 = null
  125. [node name="button" parent="portals/a/sun_pos/b1" instance=ExtResource( 9 )]
  126. [node name="Area_btn" type="Area" parent="portals/a/sun_pos/b1"]
  127. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.001, 0 )
  128. [node name="CollisionShape" type="CollisionShape" parent="portals/a/sun_pos/b1/Area_btn"]
  129. shape = SubResource( 11 )
  130. [node name="b2" type="Spatial" parent="portals/a/sun_pos"]
  131. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 5.94, -1.27, -1.624 )
  132. [node name="glow" type="MeshInstance" parent="portals/a/sun_pos/b2"]
  133. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.700528, 0 )
  134. layers = 3
  135. material_override = SubResource( 14 )
  136. mesh = SubResource( 10 )
  137. material/0 = null
  138. [node name="button" parent="portals/a/sun_pos/b2" instance=ExtResource( 10 )]
  139. [node name="Area_btn" type="Area" parent="portals/a/sun_pos/b2"]
  140. [node name="CollisionShape" type="CollisionShape" parent="portals/a/sun_pos/b2/Area_btn"]
  141. shape = SubResource( 11 )
  142. [node name="spheres" type="Spatial" parent="."]
  143. [node name="sphere1" type="Spatial" parent="spheres"]
  144. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -10.3705, -1.29228, -26.8383 )
  145. visible = false
  146. [node name="sphere1" parent="spheres/sphere1" instance=ExtResource( 7 )]
  147. [node name="sphere2" type="Spatial" parent="spheres"]
  148. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -8.20352, -1.29228, -26.8383 )
  149. visible = false
  150. [node name="sphere2" parent="spheres/sphere2" instance=ExtResource( 3 )]
  151. [node name="sphere3" type="Spatial" parent="spheres"]
  152. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -5.95363, -1.29228, -26.8383 )
  153. visible = false
  154. [node name="sphere3" parent="spheres/sphere3" instance=ExtResource( 8 )]
  155. [node name="sphere4" type="Spatial" parent="spheres"]
  156. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -3.59758, -1.29228, -26.8383 )
  157. visible = false
  158. [node name="sphere4" parent="spheres/sphere4" instance=ExtResource( 6 )]
  159. [node name="sphere5" type="Spatial" parent="spheres"]
  160. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -1.40131, -1.29228, -26.8383 )
  161. visible = false
  162. [node name="sphere5" parent="spheres/sphere5" instance=ExtResource( 5 )]
  163. [connection signal="body_entered" from="portals/a/sun_pos/b0/Area_btn" to="portals/a/sun_pos" method="_on_Area_btn_body_entered" binds= [ 0 ]]
  164. [connection signal="body_exited" from="portals/a/sun_pos/b0/Area_btn" to="portals/a/sun_pos" method="_on_Area_btn_body_exited" binds= [ 0 ]]
  165. [connection signal="body_entered" from="portals/a/sun_pos/b1/Area_btn" to="portals/a/sun_pos" method="_on_Area_btn_body_entered" binds= [ 1 ]]
  166. [connection signal="body_exited" from="portals/a/sun_pos/b1/Area_btn" to="portals/a/sun_pos" method="_on_Area_btn_body_exited" binds= [ 1 ]]
  167. [connection signal="body_entered" from="portals/a/sun_pos/b2/Area_btn" to="portals/a/sun_pos" method="_on_Area_btn_body_entered" binds= [ 2 ]]
  168. [connection signal="body_exited" from="portals/a/sun_pos/b2/Area_btn" to="portals/a/sun_pos" method="_on_Area_btn_body_exited" binds= [ 2 ]]