Branch master was renamed to main.

yannk-godot-sandbox/base_ground.gd

9 lines
235 B
GDScript3
Raw Permalink Normal View History

2020-06-06 19:45:30 +00:00
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)