yannk-godot-sandbox/base_ground.gd
2020-06-06 21:45:30 +02:00

8 lines
235 B
GDScript

tool
extends Spatial
export( Color ) var color = Color( 1.0, 1.0, 1.0, 1.0 ) setget set_shader_albedo
func set_shader_albedo( value ):
color = value
$textured_ground.get_surface_material( 0 ).set_shader_param("albedo", self.color)