Skip to content
Snippets Groups Projects
Commit c668328c authored by Erik Ulff's avatar Erik Ulff
Browse files

Added overlap scaling for merging

parent 809f2e16
No related branches found
No related tags found
No related merge requests found
......@@ -137,8 +137,11 @@ void main()
vec2 probe_pos = floor(pixel_coord / int(probe_size)) * probe_size + probe_size / 2;
float max_t = base_length * pow(4, layer_index - 1);
float min_t = layer_index > 1 ? base_length * pow(4.0, layer_index - 2) : 0.0;
const float overlap_max = 1.2;
const float overlap_min = 0.8;
float max_t = overlap_max * base_length * pow(4, layer_index - 1);
float min_t = overlap_min * layer_index > 1 ? base_length * pow(4.0, layer_index - 2) : 0.0;
float max_dis = max_t - min_t;
vec4 merged_color = vec4(0.0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment