material-maker/addons/material_maker/nodes/uniform.gd
RodZill4 1c56fc60d8 Cleanup and renaming
Moved Material Spray to another repository.
Renamed the addon directory to material_maker
2018-09-03 21:35:44 +02:00

13 lines
278 B
GDScript

tool
extends "res://addons/material_maker/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