quakeforge/libs/video/renderer/vulkan/shader/output.frag
Bill Currie 2cee2f2ab8 [vulkan] Add a module to handle output
When working, this will handle the output to the swap-chain images and
any final post-processing effects (gamma correction, screen scaling,
etc). However, currently the screen is just black because the image
for getting the main render pass output isn't hooked up yet.
2022-11-22 17:47:36 +09:00

15 lines
306 B
GLSL

#version 450
#extension GL_GOOGLE_include_directive : enable
layout (set = 0, binding = 0) uniform
#include "matrices.h"
;
layout (set = 1, binding = 0) uniform sampler2D Input;
layout (location = 0) out vec4 frag_color;
void
main (void)
{
frag_color = texture (Input, gl_FragCoord.xy * ScreenSize);
}