This is the first step of moving the create infos back inside shader sources. All info files are now treated as source files. However, they are not considered in the include tree yet. This will come in another following PR. Each shader source file now generate a `.info` file containing only the create info declarations. This renames all info files so that they do not conflict with their previous versions that were copied (non-generated). Pull Request: https://projects.blender.org/blender/blender/pulls/146676
19 lines
467 B
GLSL
19 lines
467 B
GLSL
/* SPDX-FileCopyrightText: 2016-2022 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#include "infos/gpu_shader_3D_depth_only_infos.hh"
|
|
|
|
#include "gpu_shader_cfg_world_clip_lib.glsl"
|
|
|
|
VERTEX_SHADER_CREATE_INFO(gpu_shader_3D_depth_only)
|
|
|
|
void main()
|
|
{
|
|
gl_Position = ModelViewProjectionMatrix * float4(pos, 1.0f);
|
|
|
|
#ifdef USE_WORLD_CLIP_PLANES
|
|
world_clip_planes_calc_clip_distance((clipPlanes.ClipModelMatrix * float4(pos, 1.0f)).xyz);
|
|
#endif
|
|
}
|