material-maker/addons/material_maker/preview/preview_2d.gd
2019-12-08 08:50:14 +01:00

8 lines
167 B
GDScript

extends ColorRect
func _ready() -> void:
material = material.duplicate(true)
func set_preview_texture(tex: Texture) -> void:
material.set_shader_param("tex", tex)