summaryrefslogtreecommitdiff
path: root/demos/viewport/2d_in_3d/pong3d.gd
blob: 79a7a36801e7db78d4d5d0e8e6553a3f40a4dc44 (plain)
1
2
3
4
5
6
7

extends Spatial


func _ready():
	var tex = get_node("Viewport").get_render_target_texture()
	get_node("Quad").get_material_override().set_texture(FixedMaterial.PARAM_DIFFUSE, tex)