summaryrefslogtreecommitdiff
path: root/demos/viewport
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2015-11-21 16:21:12 +0100
committerRémi Verschelde <rverschelde@gmail.com>2015-12-09 08:39:12 +0100
commit6cfc3eec9726c02ab8079ff5e8b5d69be2c87ed3 (patch)
tree04ad12c92929800575a52e731cc63dfccd5ffa8c /demos/viewport
parent7589b2bf605b58fbb0e34dec8ae833708e9b54ea (diff)
Remove systematic "Init(i)alization here" from _ready()
Diffstat (limited to 'demos/viewport')
-rw-r--r--demos/viewport/2d_in_3d/pong.gd1
-rw-r--r--demos/viewport/2d_in_3d/pong3d.gd1
-rw-r--r--demos/viewport/gui_in_3d/gui_3d.gd1
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)