Files
godot-demo-projects/viewport/2d_in_3d/2D_in_3D.tscn
Aaron Franke aea4010bc8 Convert most demos to GLES 2
Also fix Viewport error in 3D scaling demo, add an icon to Multiplayer Bomber, and rename BPM sync files.
2020-03-04 20:59:12 -05:00

163 lines
4.9 KiB
Plaintext

[gd_scene load_steps=18 format=2]
[ext_resource path="res://2D_in_3D.gd" type="Script" id=1]
[ext_resource path="res://pong.gd" type="Script" id=2]
[ext_resource path="res://ball.png" type="Texture" id=3]
[ext_resource path="res://left_pallete.png" type="Texture" id=4]
[ext_resource path="res://right_pallete.png" type="Texture" id=5]
[ext_resource path="res://separator.png" type="Texture" id=6]
[sub_resource type="PlaneMesh" id=1]
[sub_resource type="GDScript" id=2]
script/source = "tool
extends Object
func e():
return .7
"
[sub_resource type="SpatialMaterial" id=3]
roughness = 0.7
script = SubResource( 2 )
[sub_resource type="ProceduralSky" id=4]
sky_top_color = Color( 0.0470588, 0.454902, 0.976471, 1 )
sky_horizon_color = Color( 0.556863, 0.823529, 0.909804, 1 )
sky_curve = 0.25
ground_bottom_color = Color( 0.101961, 0.145098, 0.188235, 1 )
ground_horizon_color = Color( 0.482353, 0.788235, 0.952941, 1 )
ground_curve = 0.01
[sub_resource type="GDScript" id=5]
script/source = "tool
extends Object
func e():
return .4
"
[sub_resource type="Environment" id=6]
background_mode = 2
background_sky = SubResource( 4 )
background_color = Color( 0.445312, 0.445312, 0.445312, 1 )
ambient_light_color = Color( 0.511719, 0.511719, 0.511719, 1 )
ambient_light_sky_contribution = 0.4
ssao_blur = 1
script = SubResource( 5 )
[sub_resource type="CubeMesh" id=7]
[sub_resource type="SpatialMaterial" id=8]
albedo_color = Color( 0.652344, 0.652344, 0.652344, 1 )
roughness = 0.0
[sub_resource type="GDScript" id=9]
script/source = "tool
extends Object
func e():
return 0.1
"
[sub_resource type="CubeMesh" id=10]
size = Vector3( 1.1, 0.8, 0.1 )
script = SubResource( 9 )
[sub_resource type="SpatialMaterial" id=11]
[node name="2D_in_3D" type="Spatial"]
script = ExtResource( 1 )
[node name="Camera" type="Camera" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.1, 0 )
fov = 74.0
near = 0.1
[node name="Floor" type="MeshInstance" parent="."]
transform = Transform( 4, 0, 0, 0, 4, 0, 0, 0, 4, 0, -1, -2 )
mesh = SubResource( 1 )
material/0 = SubResource( 3 )
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource( 6 )
[node name="Pillar" type="Spatial" parent="."]
transform = Transform( 0.6, 0, 0, 0, 0.6, 0, 0, 0, 0.6, -3, -0.2, -4 )
[node name="Pillar_bottom" type="MeshInstance" parent="Pillar"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, 0 )
mesh = SubResource( 7 )
material/0 = SubResource( 8 )
[node name="Pillar_top" type="MeshInstance" parent="Pillar"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5.5, 0 )
mesh = SubResource( 7 )
material/0 = SubResource( 8 )
[node name="Pillar_middle" type="MeshInstance" parent="Pillar"]
transform = Transform( 0.7, 0, 0, 0, 2, 0, 0, 0, 0.7, 0, 2.5, 0 )
mesh = SubResource( 7 )
material/0 = SubResource( 8 )
[node name="Pillar2" type="Spatial" parent="."]
transform = Transform( 0.6, 0, 0, 0, 0.6, 0, 0, 0, 0.6, 3, -0.2, -4 )
[node name="Pillar_bottom" type="MeshInstance" parent="Pillar2"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, 0 )
mesh = SubResource( 7 )
material/0 = SubResource( 8 )
[node name="Pillar_top" type="MeshInstance" parent="Pillar2"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5.5, 0 )
mesh = SubResource( 7 )
material/0 = SubResource( 8 )
[node name="Pillar_middle" type="MeshInstance" parent="Pillar2"]
transform = Transform( 0.7, 0, 0, 0, 2, 0, 0, 0, 0.7, 0, 2.5, 0 )
mesh = SubResource( 7 )
material/0 = SubResource( 8 )
[node name="Pillar_back" type="MeshInstance" parent="."]
transform = Transform( 4, 0, 0, 0, 4, 0, 0, 0, 4, 0, 1.2, -4.5 )
mesh = SubResource( 10 )
material/0 = SubResource( 8 )
[node name="DirectionalLight" type="DirectionalLight" parent="."]
transform = Transform( 0.623013, -0.733525, 0.271654, 0.321394, 0.55667, 0.766044, -0.713134, -0.389948, 0.582563, 0, 10, 0 )
shadow_enabled = true
directional_shadow_blend_splits = true
directional_shadow_normal_bias = 0.2
[node name="Viewport_quad" type="MeshInstance" parent="."]
transform = Transform( 2, 0, 0, 0, 0, -1.333, 0, 1, 0, 0, 1.2, -4.25 )
material_override = SubResource( 11 )
mesh = SubResource( 1 )
material/0 = null
[node name="Viewport" type="Viewport" parent="."]
size = Vector2( 600, 400 )
hdr = false
usage = 0
render_target_v_flip = true
[node name="2D_World" type="Node2D" parent="Viewport"]
script = ExtResource( 2 )
[node name="BG" type="Panel" parent="Viewport/2D_World"]
margin_right = 600.0
margin_bottom = 400.0
[node name="ball" type="Sprite" parent="Viewport/2D_World"]
position = Vector2( 300, 200 )
texture = ExtResource( 3 )
[node name="left" type="Sprite" parent="Viewport/2D_World"]
position = Vector2( 20, 200 )
texture = ExtResource( 4 )
[node name="right" type="Sprite" parent="Viewport/2D_World"]
position = Vector2( 580, 200 )
texture = ExtResource( 5 )
[node name="separator" type="Sprite" parent="Viewport/2D_World"]
position = Vector2( 298, 200 )
texture = ExtResource( 6 )