When GLSL sources were first included in Blender they were treated as data (like blend files) and had no license header. Since then GLSL has been used for more sophisticated features (EEVEE & real-time compositing) where it makes sense to include licensing information. Add SPDX copyright headers to *.glsl files, matching headers used for C/C++, also include GLSL files in the license checking script. As leading C-comments are now stripped, added binary size of comments is no longer a concern. Ref !111247
18 lines
395 B
GLSL
18 lines
395 B
GLSL
/* SPDX-FileCopyrightText: 2017-2022 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#pragma BLENDER_REQUIRE(common_view_clipping_lib.glsl)
|
|
#pragma BLENDER_REQUIRE(common_view_lib.glsl)
|
|
|
|
void main()
|
|
{
|
|
GPU_INTEL_VERTEX_SHADER_WORKAROUND
|
|
|
|
vec3 world_pos = point_object_to_world(pos);
|
|
|
|
gl_Position = point_world_to_ndc(world_pos);
|
|
|
|
view_clipping_distances(world_pos);
|
|
}
|