mirror of
https://github.com/Relintai/material-maker.git
synced 2024-12-27 23:17:14 +01:00
93c84650cd
This also simplifies some functions. This partially addresses #30.
22 lines
360 B
GDScript
22 lines
360 B
GDScript
tool
|
|
extends MMGenTexture
|
|
class_name MMGenImage
|
|
|
|
"""
|
|
Texture generator from image
|
|
"""
|
|
|
|
func get_type() -> String:
|
|
return "image"
|
|
|
|
func get_type_name() -> String:
|
|
return "Image"
|
|
|
|
func get_parameter_defs() -> Array:
|
|
return [ { name="image", type="path" } ]
|
|
|
|
func set_parameter(n : String, v) -> void:
|
|
.set_parameter(n, v)
|
|
if n == "image":
|
|
texture.load(v)
|