2023-08-24 10:54:59 +10:00
|
|
|
/* SPDX-FileCopyrightText: 2019-2023 Blender Authors
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
2019-12-02 01:40:58 +01:00
|
|
|
|
2025-09-25 10:57:02 +02:00
|
|
|
#include "infos/overlay_extra_infos.hh"
|
2025-02-24 16:17:18 +01:00
|
|
|
|
|
|
|
|
FRAGMENT_SHADER_CREATE_INFO(overlay_extra_groundline)
|
|
|
|
|
|
2025-01-23 18:06:22 +01:00
|
|
|
#include "overlay_common_lib.glsl"
|
2024-10-04 15:48:22 +02:00
|
|
|
#include "select_lib.glsl"
|
2019-12-02 01:40:58 +01:00
|
|
|
|
|
|
|
|
void main()
|
|
|
|
|
{
|
2025-04-24 12:50:45 +02:00
|
|
|
frag_color = final_color;
|
2024-11-20 17:35:18 +01:00
|
|
|
#ifdef IS_SPOT_CONE
|
2025-04-24 12:50:45 +02:00
|
|
|
line_output = float4(0.0f);
|
2024-11-20 17:35:18 +01:00
|
|
|
#else
|
2025-04-24 12:50:45 +02:00
|
|
|
line_output = pack_line_data(gl_FragCoord.xy, edge_start, edge_pos);
|
2023-05-23 15:00:38 +02:00
|
|
|
select_id_output(select_id);
|
2024-11-20 17:35:18 +01:00
|
|
|
#endif
|
2019-12-16 13:49:11 +11:00
|
|
|
}
|