8 lines
235 B
GDScript
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)
|