Skip to content

Instantly share code, notes, and snippets.

View SIsilicon's full-sized avatar
😊

Roujel Williams SIsilicon

😊
  • St. Ann, Jamaica
View GitHub Profile
@clayjohn
clayjohn / texture_generator.gd
Created August 5, 2019 22:04
Uses custom viewports to generate textures before the first frame is drawn
extends Node2D
var myViewport
var myCanvas
func _ready():
## Stop main viewport from drawing when we force draw
## should loop through all other viewports as well
VisualServer.viewport_set_active(get_viewport().get_viewport_rid(), false)
# initialize Viewport, needs canvas