mirror of
https://github.com/Relintai/material-maker.git
synced 2024-11-13 06:27:18 +01:00
8 lines
167 B
GDScript
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)
|