Skip to content

Commit

Permalink
reduce cross line length
Browse files Browse the repository at this point in the history
  • Loading branch information
Xtarsia committed Nov 2, 2024
1 parent cc383ab commit 66bcc15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shaders/editor_functions.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ vec3 get_decal(vec3 albedo, vec2 uv) {
cross_uv /= sqrt(length(v_camera_pos - v_vertex));
float line_thickness = 0.5;
float line_start = _editor_decal_size[0] * 0.5 + 8.;
float line_end = _editor_decal_size[0] * 0.5 + 32.;
float line_end = _editor_decal_size[0] * 0.5 + 16.;
bool h = abs(cross_uv.y) < line_thickness && abs(cross_uv.x) < line_end && abs(cross_uv.x) > line_start;
bool v = abs(cross_uv.x) < line_thickness && abs(cross_uv.y) < line_end && abs(cross_uv.y) > line_start;
albedo = (h || v) ? mix(albedo, _editor_decal_color[0].rgb, fade) : albedo;
Expand Down

0 comments on commit 66bcc15

Please sign in to comment.