@@ -32,8 +32,10 @@ function outline_drawer(_viewport = 0, _outline_color = c_white, _outline_alpha
3232 camera = view_get_camera (_viewport);
3333
3434 shader = shd_outline;
35-
36- // outline_color = _outline_color;
35+ u_texel = shader_get_uniform (shader, " u_vTexel" );
36+ u_outline_color = shader_get_uniform (shader, " u_vOutlineColour" );
37+ u_thickness = shader_get_uniform (shader, " u_vThickness" );
38+
3739 outline_color = make_color_rgb (color_get_red (_outline_color),color_get_green (_outline_color),color_get_blue (_outline_color));
3840 outline_alpha = _outline_alpha;
3941 outline_strength = _outline_strength;
@@ -126,9 +128,9 @@ function outline_drawer(_viewport = 0, _outline_color = c_white, _outline_alpha
126128 shader_set (shader);
127129 var _texture = surface_get_texture (__outline_surface_1);
128130 texture_set_stage (shader_get_sampler_index (shader, " u_sSpriteSurface" ), _texture);
129- shader_set_uniform_f (shader_get_uniform (shader, " u_vTexel " ) , texture_get_texel_width (_texture), texture_get_texel_height (_texture));
130- shader_set_uniform_f (shader_get_uniform (shader, " u_vOutlineColour " ) , outline_color, outline_alpha); // colour, alpha
131- shader_set_uniform_f (shader_get_uniform (shader, " u_vThickness " ) , outline_strength, alpha_fading ? 1 : 0 ); // thickness x, y
131+ shader_set_uniform_f (u_texel , texture_get_texel_width (_texture), texture_get_texel_height (_texture));
132+ shader_set_uniform_f (u_outline_color , outline_color, outline_alpha); // colour, alpha
133+ shader_set_uniform_f (u_thickness , outline_strength, alpha_fading ? 1 : 0 ); // thickness x, y
132134
133135 draw_surface_part_ext (application_surface,
134136 _surface_l, _surface_t ,
0 commit comments