Welcome to mirror list, hosted at ThFree Co, Russian Federation.

antialiasing_info.hh « infos « shaders « overlay « engines « draw « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fe67dd473b77ded64e9d224d75cbf717bc7fa70b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* SPDX-License-Identifier: GPL-2.0-or-later */

#include "gpu_shader_create_info.hh"

GPU_SHADER_CREATE_INFO(overlay_antialiasing)
    .do_static_compilation(true)
    .sampler(0, ImageType::DEPTH_2D, "depthTex")
    .sampler(1, ImageType::FLOAT_2D, "colorTex")
    .sampler(2, ImageType::FLOAT_2D, "lineTex")
    .push_constant(Type::BOOL, "doSmoothLines")
    .fragment_out(0, Type::VEC4, "fragColor")
    .fragment_source("antialiasing_frag.glsl")
    .additional_info("draw_fullscreen", "draw_globals");

GPU_SHADER_CREATE_INFO(overlay_xray_fade)
    .do_static_compilation(true)
    .sampler(0, ImageType::DEPTH_2D, "depthTex")
    .sampler(1, ImageType::DEPTH_2D, "xrayDepthTex")
    .push_constant(Type::FLOAT, "opacity")
    .fragment_out(0, Type::VEC4, "fragColor")
    .fragment_source("xray_fade_frag.glsl")
    .additional_info("draw_fullscreen");