diff options
Diffstat (limited to 'demos/viewport')
-rw-r--r-- | demos/viewport/2d_in_3d/pong.gd | 1 | ||||
-rw-r--r-- | demos/viewport/2d_in_3d/pong3d.gd | 1 | ||||
-rw-r--r-- | demos/viewport/gui_in_3d/gui_3d.gd | 1 |
3 files changed, 0 insertions, 3 deletions
diff --git a/demos/viewport/2d_in_3d/pong.gd b/demos/viewport/2d_in_3d/pong.gd index bf93c63bf2..ac3457453b 100644 --- a/demos/viewport/2d_in_3d/pong.gd +++ b/demos/viewport/2d_in_3d/pong.gd @@ -61,7 +61,6 @@ func _process(delta): func _ready(): - # Initalization here screen_size = get_viewport_rect().size # Get actual size pad_size = get_node("left").get_texture().get_size() set_process(true) diff --git a/demos/viewport/2d_in_3d/pong3d.gd b/demos/viewport/2d_in_3d/pong3d.gd index 9e5e5b28c5..79a7a36801 100644 --- a/demos/viewport/2d_in_3d/pong3d.gd +++ b/demos/viewport/2d_in_3d/pong3d.gd @@ -3,6 +3,5 @@ extends Spatial func _ready(): - # Initalization here var tex = get_node("Viewport").get_render_target_texture() get_node("Quad").get_material_override().set_texture(FixedMaterial.PARAM_DIFFUSE, tex) diff --git a/demos/viewport/gui_in_3d/gui_3d.gd b/demos/viewport/gui_in_3d/gui_3d.gd index c640b133d3..b93c17521d 100644 --- a/demos/viewport/gui_in_3d/gui_3d.gd +++ b/demos/viewport/gui_in_3d/gui_3d.gd @@ -33,6 +33,5 @@ func _on_area_input_event(camera, event, click_pos, click_normal, shape_idx): func _ready(): - # Initalization here get_node("area/quad").get_material_override().set_texture(FixedMaterial.PARAM_DIFFUSE, get_node("viewport").get_render_target_texture()) set_process_input(true) |