2023-08-24 10:54:59 +10:00
|
|
|
/* SPDX-FileCopyrightText: 2017-2022 Blender Authors
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
2019-01-21 19:08:42 +11:00
|
|
|
|
2025-09-25 10:57:02 +02:00
|
|
|
#include "infos/overlay_facing_infos.hh"
|
2025-02-24 16:17:18 +01:00
|
|
|
|
|
|
|
|
VERTEX_SHADER_CREATE_INFO(overlay_facing_base)
|
2025-02-25 23:05:03 +01:00
|
|
|
VERTEX_SHADER_CREATE_INFO(draw_modelmat)
|
2025-02-24 16:17:18 +01:00
|
|
|
|
2025-01-23 18:06:22 +01:00
|
|
|
#include "draw_model_lib.glsl"
|
2025-02-19 17:46:04 +01:00
|
|
|
#include "draw_view_clipping_lib.glsl"
|
2025-01-23 18:06:22 +01:00
|
|
|
#include "draw_view_lib.glsl"
|
2018-04-20 10:45:46 +02:00
|
|
|
|
|
|
|
|
void main()
|
|
|
|
|
{
|
2025-04-14 13:46:41 +02:00
|
|
|
float3 world_pos = drw_point_object_to_world(pos);
|
2025-01-23 18:06:22 +01:00
|
|
|
gl_Position = drw_point_world_to_homogenous(world_pos);
|
2022-05-01 17:14:30 +02:00
|
|
|
view_clipping_distances(world_pos);
|
2018-04-20 10:45:46 +02:00
|
|
|
}
|