Lines Matching refs:screen_pos
411 vec3 screen_pos = vec3(viewport.xy + viewport.zw * ndc_pos, 1.0);
412 edge_dist[0] = vec4(dot(edge[0], screen_pos),
413 dot(edge[1], screen_pos),
414 dot(edge[2], screen_pos),
415 dot(edge[3], screen_pos)) * gl_Position.w;
416 edge_dist[1] = vec4(dot(edge[4], screen_pos),
417 dot(edge[5], screen_pos),
418 dot(edge[6], screen_pos),
419 dot(edge[7], screen_pos)) * gl_Position.w;
472 vec3 screen_pos = vec3(viewport.xy + viewport.zw * ndc_pos, 1.0);
473 edge_dist[0] = vec4(dot(edge[0], screen_pos),
474 dot(edge[1], screen_pos),
475 dot(edge[2], screen_pos),
476 dot(edge[3], screen_pos)) * gl_Position.w;
477 edge_dist[1] = vec4(dot(edge[4], screen_pos),
478 dot(edge[5], screen_pos),
479 dot(edge[6], screen_pos),
480 dot(edge[7], screen_pos)) * gl_Position.w;
576 vec3 screen_pos = vec3(viewport.xy + viewport.zw * ndc_pos, 1.0);
577 edge_dist[0] = vec4(dot(edge[0], screen_pos),
578 dot(edge[1], screen_pos),
579 dot(edge[2], screen_pos),
580 dot(edge[3], screen_pos)) * gl_Position.w;
581 edge_dist[1] = vec4(dot(edge[4], screen_pos),
582 dot(edge[5], screen_pos),
583 dot(edge[6], screen_pos),
584 dot(edge[7], screen_pos)) * gl_Position.w;