Allow compilation of shaders using C++ for linting and IDE support. Related #127983 Pull Request: https://projects.blender.org/blender/blender/pulls/128724
19 lines
416 B
GLSL
19 lines
416 B
GLSL
/* SPDX-FileCopyrightText: 2023 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#include "infos/gpu_shader_2D_image_overlays_merge_info.hh"
|
|
|
|
VERTEX_SHADER_CREATE_INFO(gpu_shader_cycles_display_fallback)
|
|
|
|
vec2 normalize_coordinates()
|
|
{
|
|
return (vec2(2.0) * (pos / fullscreen)) - vec2(1.0);
|
|
}
|
|
|
|
void main()
|
|
{
|
|
gl_Position = vec4(normalize_coordinates(), 0.0, 1.0);
|
|
texCoord_interp = texCoord;
|
|
}
|