godot_experiments/experiments/psd_panel.gd

13 lines
296 B
GDScript

@tool
extends Node3D
@export_range(0.2, 20, 0.2) var repeat_times: float = 1
func _ready():
var vp = $LabelTexture
vp.set_clear_mode(SubViewport.CLEAR_MODE_ONCE)
$Plane.material_override.albedo_texture = vp.get_texture()
$Plane.material_override.uv1_scale = Vector3(repeat_times, 1, 1)