var img = camera.get_viewport().get_texture().get_data() var tex = ImageTexture.new() tex.create_from_image(img) get_node("c").texture = tex