godot-grass/grass.gd

8 lines
191 B
GDScript3
Raw Normal View History

2025-05-25 15:24:01 +02:00
@tool
extends MultiMeshInstance3D
func _process(delta: float) -> void:
if has_node("MeshInstance3D"):
material_override.set_shader_parameter("object_position", $MeshInstance3D.position)