15 lines
273 B
GDScript3
15 lines
273 B
GDScript3
|
|
||
|
extends Spatial
|
||
|
|
||
|
# member variables here, example:
|
||
|
# var a=2
|
||
|
# var b="textvar"
|
||
|
|
||
|
func _ready():
|
||
|
# Initalization here
|
||
|
var tex = get_node("Viewport").get_render_target_texture()
|
||
|
get_node("Quad").get_material_override().set_texture(FixedMaterial.PARAM_DIFFUSE,tex)
|
||
|
pass
|
||
|
|
||
|
|