p4.tscn 8.7 KB

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