Skip to content

Commit

Permalink
Merge pull request #80323 from garychia/canvas_point_size
Browse files Browse the repository at this point in the history
Ensure `POINT_SIZE` takes effect in the canvas item shader
  • Loading branch information
akien-mga committed Aug 21, 2023
2 parents 23db024 + 0cf57e1 commit 10b1f82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion servers/rendering/renderer_rd/renderer_canvas_render_rd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2427,7 +2427,7 @@ RendererCanvasRenderRD::RendererCanvasRenderRD() {
actions.renames["LIGHT_VERTEX"] = "light_vertex";
actions.renames["SHADOW_VERTEX"] = "shadow_vertex";
actions.renames["UV"] = "uv";
actions.renames["POINT_SIZE"] = "gl_PointSize";
actions.renames["POINT_SIZE"] = "point_size";

actions.renames["MODEL_MATRIX"] = "model_matrix";
actions.renames["CANVAS_MATRIX"] = "canvas_data.canvas_transform";
Expand Down Expand Up @@ -2475,6 +2475,7 @@ RendererCanvasRenderRD::RendererCanvasRenderRD() {
actions.usage_defines["NORMAL_MAP"] = "#define NORMAL_MAP_USED\n";
actions.usage_defines["LIGHT"] = "#define LIGHT_SHADER_CODE_USED\n";
actions.usage_defines["SPECULAR_SHININESS"] = "#define SPECULAR_SHININESS_USED\n";
actions.usage_defines["POINT_SIZE"] = "#define USE_POINT_SIZE\n";

actions.render_mode_defines["skip_vertex_transform"] = "#define SKIP_TRANSFORM_USED\n";
actions.render_mode_defines["unshaded"] = "#define MODE_UNSHADED\n";
Expand Down

0 comments on commit 10b1f82

Please sign in to comment.