From 2ea20b9496e576c3b69bc6c6b35677504089acbd Mon Sep 17 00:00:00 2001 From: Tanasart Date: Fri, 26 Jul 2024 11:09:29 +0700 Subject: [PATCH] - [2D Light] Fix point light precision change randomly. --- scripts/node_2d_light/node_2d_light.gml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/node_2d_light/node_2d_light.gml b/scripts/node_2d_light/node_2d_light.gml index 2b22e4120..86b312c63 100644 --- a/scripts/node_2d_light/node_2d_light.gml +++ b/scripts/node_2d_light/node_2d_light.gml @@ -175,6 +175,8 @@ function Node_2D_light(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) shader_set_uniform_f(uniform_attn, _attn); shader_set_uniform_f_array_safe(uniform_colr, [ _color_get_red(_color), _color_get_green(_color), _color_get_blue(_color) ]); + draw_set_circle_precision(64); + switch(_shape) { case LIGHT_SHAPE_2D.point : var _rbnd = _data[12];