Skip to content

Instantly share code, notes, and snippets.

@zmarcos
Created January 13, 2020 19:38
Show Gist options
  • Save zmarcos/ed061746845f59e1f864972e1b193de8 to your computer and use it in GitHub Desktop.
Save zmarcos/ed061746845f59e1f864972e1b193de8 to your computer and use it in GitHub Desktop.
Godot Flipper
extends Node
func _ready():
# To flip the viewport on Windows (USED FOR TESTING)
if ("Windows" == OS.get_name()) and OS.is_debug_build():
var vp: Viewport = get_tree().get_root()
vp.render_target_v_flip = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment