virtualx-engine/demos/viewport/2d_in_3d/pong3d.gd
2015-12-09 08:39:12 +01:00

7 lines
182 B
GDScript

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)