From 5533b1db6790d6daa1b0f57ab48bbcd5d47c54bd Mon Sep 17 00:00:00 2001 From: luboslenco Date: Thu, 16 Jul 2026 18:39:03 +0200 Subject: [PATCH] paint: improve path points draw --- paint/sources/render/make_particle.c | 2 +- paint/sources/util/util_path.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/paint/sources/render/make_particle.c b/paint/sources/render/make_particle.c index 7abe91e1..a6574fcb 100644 --- a/paint/sources/render/make_particle.c +++ b/paint/sources/render/make_particle.c @@ -35,7 +35,7 @@ static node_shader_context_t *make_particle_bullet_run() { node_shader_add_function(kong, str_octahedron_wrap); node_shader_add_function(kong, str_pack_float_int16); - node_shader_write_frag(kong, "var basecol: float3 = float3(0.8, 0.8, 0.8);"); + node_shader_write_frag(kong, "var basecol: float3 = float3(0.8, 0.0, 0.0);"); node_shader_write_frag(kong, "var roughness: float = 0.5;"); node_shader_write_frag(kong, "var metallic: float = 0.0;"); node_shader_write_frag(kong, "var occlusion: float = 1.0;"); diff --git a/paint/sources/util/util_path.c b/paint/sources/util/util_path.c index 3eda97d7..543395f9 100644 --- a/paint/sources/util/util_path.c +++ b/paint/sources/util/util_path.c @@ -556,7 +556,9 @@ void util_layer_update_path() { path_point_spheres = (object_t **)gc_realloc(path_point_spheres, vis_points * sizeof(object_t *)); gc_root(path_point_spheres); for (i32 i = path_point_sphere_count; i < vis_points; i++) { - object_t *o = scene_spawn_object(".Sphere", NULL, true); + object_t *o = scene_spawn_object(".Sphere", NULL, true); + mesh_object_t *mo = o->ext; + mo->material = make_particle_get_bullet_material(); o->visible = true; path_point_spheres[i] = o; }