Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/shaders/infos/gpu_shader_3D_polyline_info.hh
| /* SPDX-License-Identifier: GPL-2.0-or-later | /* SPDX-License-Identifier: GPL-2.0-or-later | ||||
| * Copyright 2022 Blender Foundation. All rights reserved. */ | * Copyright 2022 Blender Foundation. All rights reserved. */ | ||||
| /** \file | /** \file | ||||
| * \ingroup gpu | * \ingroup gpu | ||||
| */ | */ | ||||
| #include "gpu_interface_info.hh" | #include "gpu_interface_info.hh" | ||||
| #include "gpu_shader_create_info.hh" | #include "gpu_shader_create_info.hh" | ||||
| GPU_SHADER_INTERFACE_INFO(gpu_shader_3D_polyline_iface, "interp") | GPU_SHADER_INTERFACE_INFO(gpu_shader_3D_polyline_iface, "interp") | ||||
| .smooth(Type::VEC4, "color") | .smooth(Type::VEC4, "final_color") | ||||
| .smooth(Type::FLOAT, "clip") | .smooth(Type::FLOAT, "clip") | ||||
| .no_perspective(Type::FLOAT, "smoothline"); | .no_perspective(Type::FLOAT, "smoothline"); | ||||
| GPU_SHADER_CREATE_INFO(gpu_shader_3D_polyline) | GPU_SHADER_CREATE_INFO(gpu_shader_3D_polyline) | ||||
| .define("SMOOTH_WIDTH", "1.0") | .define("SMOOTH_WIDTH", "1.0") | ||||
| .push_constant(Type::MAT4, "ModelViewProjectionMatrix") | .push_constant(Type::MAT4, "ModelViewProjectionMatrix") | ||||
| .push_constant(Type::VEC2, "viewportSize") | .push_constant(Type::VEC2, "viewportSize") | ||||
| .push_constant(Type::FLOAT, "lineWidth") | .push_constant(Type::FLOAT, "lineWidth") | ||||
| ▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines | |||||