9 lines
235 B
GDScript3
9 lines
235 B
GDScript3
|
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)
|