p1.tscn 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. [gd_scene load_steps=27 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://textures/n256.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/p1.shader" type="Shader" id=12]
  14. [ext_resource path="res://panorama/static/p1.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/dir_angle = Vector3( 0, 0.1, 0.9 )
  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="ShaderMaterial" id=13]
  64. render_priority = 11
  65. shader = SubResource( 8 )
  66. shader_param/colorx = Color( 0.172549, 0.717647, 0.207843, 1 )
  67. [node name="p1" type="Spatial"]
  68. [node name="DirectionalLight" type="DirectionalLight" parent="."]
  69. transform = Transform( 1, 0, 0, 0, 0.642788, 0.766045, 0, -0.766045, 0.642788, 6.64654, 5.36431, -37.1819 )
  70. light_color = Color( 0.709804, 0.992157, 1, 1 )
  71. shadow_enabled = true
  72. [node name="Camera" type="Camera" parent="."]
  73. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -1.55013, 1.58168, -19.7168 )
  74. cull_mask = 1
  75. environment = SubResource( 2 )
  76. [node name="sphere" type="MeshInstance" parent="Camera"]
  77. material_override = SubResource( 3 )
  78. mesh = SubResource( 4 )
  79. material/0 = null
  80. [node name="portals" type="Spatial" parent="."]
  81. [node name="a" type="Spatial" parent="portals"]
  82. transform = Transform( -1.62921e-07, 0, -1, 0, 1, 0, 1, 0, -1.62921e-07, -5.43973, -2.7582, -33.3231 )
  83. [node name="stone_ancient_window__door_frame_pbr" parent="portals/a" instance=ExtResource( 2 )]
  84. [node name="low_poly_nature_scene" parent="portals/a" instance=ExtResource( 1 )]
  85. 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 )
  86. [node name="wall" type="Spatial" parent="portals/a"]
  87. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -9.04785, -2.21818, 2.38419e-06 )
  88. [node name="door_in" type="MeshInstance" parent="portals/a/wall"]
  89. 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 )
  90. material_override = SubResource( 6 )
  91. cast_shadow = 0
  92. mesh = SubResource( 7 )
  93. material/0 = null
  94. [node name="sun_pos" type="Spatial" parent="portals/a"]
  95. transform = Transform( -0.734879, 0, 0.678198, 0, 1, 0, -0.678198, 0, -0.734879, -6.97079, 2.1654, 6.30037 )
  96. [node name="b0" type="Spatial" parent="portals/a/sun_pos"]
  97. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 1.3117, -1.27058, 0 )
  98. [node name="glow" type="MeshInstance" parent="portals/a/sun_pos/b0"]
  99. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.700528, 0 )
  100. layers = 3
  101. material_override = SubResource( 9 )
  102. mesh = SubResource( 10 )
  103. material/0 = null
  104. [node name="button" parent="portals/a/sun_pos/b0" instance=ExtResource( 11 )]
  105. [node name="Area_btn" type="Area" parent="portals/a/sun_pos/b0"]
  106. [node name="CollisionShape" type="CollisionShape" parent="portals/a/sun_pos/b0/Area_btn"]
  107. shape = SubResource( 11 )
  108. [node name="b1" type="Spatial" parent="portals/a/sun_pos"]
  109. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 3.686, -1.27, -0.81 )
  110. [node name="glow" type="MeshInstance" parent="portals/a/sun_pos/b1"]
  111. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.700528, 0 )
  112. layers = 3
  113. material_override = SubResource( 12 )
  114. mesh = SubResource( 10 )
  115. material/0 = null
  116. [node name="button" parent="portals/a/sun_pos/b1" instance=ExtResource( 9 )]
  117. [node name="Area_btn" type="Area" parent="portals/a/sun_pos/b1"]
  118. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.001, 0 )
  119. [node name="CollisionShape" type="CollisionShape" parent="portals/a/sun_pos/b1/Area_btn"]
  120. shape = SubResource( 11 )
  121. [node name="b2" type="Spatial" parent="portals/a/sun_pos"]
  122. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 5.94, -1.27, -1.624 )
  123. [node name="glow" type="MeshInstance" parent="portals/a/sun_pos/b2"]
  124. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.700528, 0 )
  125. layers = 3
  126. material_override = SubResource( 13 )
  127. mesh = SubResource( 10 )
  128. material/0 = null
  129. [node name="button" parent="portals/a/sun_pos/b2" instance=ExtResource( 10 )]
  130. [node name="Area_btn" type="Area" parent="portals/a/sun_pos/b2"]
  131. [node name="CollisionShape" type="CollisionShape" parent="portals/a/sun_pos/b2/Area_btn"]
  132. shape = SubResource( 11 )
  133. [node name="spheres" type="Spatial" parent="."]
  134. [node name="sphere1" type="Spatial" parent="spheres"]
  135. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -10.3705, -1.29228, -26.8383 )
  136. visible = false
  137. [node name="sphere1" parent="spheres/sphere1" instance=ExtResource( 7 )]
  138. [node name="sphere2" type="Spatial" parent="spheres"]
  139. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -8.20352, -1.29228, -26.8383 )
  140. visible = false
  141. [node name="sphere2" parent="spheres/sphere2" instance=ExtResource( 3 )]
  142. [node name="sphere3" type="Spatial" parent="spheres"]
  143. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -5.95363, -1.29228, -26.8383 )
  144. visible = false
  145. [node name="sphere3" parent="spheres/sphere3" instance=ExtResource( 8 )]
  146. [node name="sphere4" type="Spatial" parent="spheres"]
  147. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -3.59758, -1.29228, -26.8383 )
  148. visible = false
  149. [node name="sphere4" parent="spheres/sphere4" instance=ExtResource( 6 )]
  150. [node name="sphere5" type="Spatial" parent="spheres"]
  151. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -1.40131, -1.29228, -26.8383 )
  152. visible = false
  153. [node name="sphere5" parent="spheres/sphere5" instance=ExtResource( 5 )]
  154. [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 ]]
  155. [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 ]]
  156. [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 ]]
  157. [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 ]]
  158. [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 ]]
  159. [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 ]]