mirror of
https://github.com/Relintai/material-maker.git
synced 2024-12-23 21:16:54 +01:00
a9e7442acc
... and minor fixes
13 lines
283 B
GDScript
13 lines
283 B
GDScript
tool
|
|
extends "res://addons/procedural_material/node_base.gd"
|
|
|
|
var color = Color(0.0, 0.0, 0.0)
|
|
|
|
func _ready():
|
|
initialize_properties([ $color ])
|
|
|
|
func _get_shader_code(uv):
|
|
var rv = { defs="", code="" }
|
|
rv.rgb = "vec3(%.9f, %.9f, %.9f)" % [ color.r, color.g, color.b ]
|
|
return rv
|