mirror of
https://github.com/Relintai/material-maker.git
synced 2024-11-13 06:27:18 +01:00
9 lines
185 B
GDScript
9 lines
185 B
GDScript
tool
|
|
extends ColorRect
|
|
|
|
func set_preview_texture(tex: Texture) -> void:
|
|
material.set_shader_param("tex", tex)
|
|
|
|
func on_resized() -> void:
|
|
material.set_shader_param("size", rect_size)
|