Blender V4.3
gpu_shader_instance_varying_color_varying_size_info.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2022 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
11
12GPU_SHADER_CREATE_INFO(gpu_shader_instance_varying_color_varying_size)
13 .vertex_in(0, Type::VEC3, "pos")
14 .vertex_in(1, Type::VEC4, "color")
15 .vertex_in(2, Type::FLOAT, "size")
16 .vertex_in(3, Type::MAT4, "InstanceModelMatrix")
17 .vertex_out(flat_color_iface)
18 .fragment_out(0, Type::VEC4, "fragColor")
19 .push_constant(Type::MAT4, "ViewProjectionMatrix")
20 .vertex_source("gpu_shader_instance_variying_size_variying_color_vert.glsl")
21 .fragment_source("gpu_shader_flat_color_frag.glsl")
22 .additional_info("gpu_srgb_to_framebuffer_space")
23 .do_static_compilation(true);
#define GPU_SHADER_CREATE_INFO(_info)