diff --git a/game/addons/mat_maker_gd/nodes/mm_node.gd b/game/addons/mat_maker_gd/nodes/mm_node.gd index ce9327de..fcec253e 100644 --- a/game/addons/mat_maker_gd/nodes/mm_node.gd +++ b/game/addons/mat_maker_gd/nodes/mm_node.gd @@ -21,7 +21,7 @@ func recalculate_image(material, slot_idx : int) -> ImageTexture: for y in range(image.get_height()): var v : Vector2 = Vector2(x / w, y / h) - var col : Color = get_value_for(v) + var col : Color = get_value_for(v, slot_idx) image.set_pixel(x, y, col) @@ -31,7 +31,7 @@ func recalculate_image(material, slot_idx : int) -> ImageTexture: return tex -func get_value_for(uv : Vector2) -> Color: +func get_value_for(uv : Vector2, slot_idx : int) -> Color: return Color() func register_methods(mm_graph_node) -> void: diff --git a/game/addons/mat_maker_gd/nodes/noise/perlin.gd b/game/addons/mat_maker_gd/nodes/noise/perlin.gd index ca0e94e2..02f42348 100644 --- a/game/addons/mat_maker_gd/nodes/noise/perlin.gd +++ b/game/addons/mat_maker_gd/nodes/noise/perlin.gd @@ -15,7 +15,7 @@ var p_o12297_scale_y = 4.000000000; var p_o12297_iterations = 3.000000000; var p_o12297_persistence = 0.500000000; -func get_value_for(uv : Vector2) -> Color: +func get_value_for(uv : Vector2, slot_idx : int) -> Color: var a = NoisePerlin.perlinc(uv, Vector2(p_o12297_scale_x, p_o12297_scale_y), int(p_o12297_iterations), p_o12297_persistence, seed_o12297) return a