material-maker/addons/material_maker/engine/gen_image.gd
2019-08-25 23:27:07 +02:00

22 lines
323 B
GDScript

tool
extends MMGenTexture
class_name MMGenImage
"""
Texture generator from image
"""
func get_type():
return "image"
func get_type_name():
return "Image"
func get_parameter_defs():
return [ { name="image", type="path" } ]
func set_parameter(n : String, v):
.set_parameter(n, v)
if n == "image":
texture.load(v)