-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathFFNx.blit.frag
26 lines (22 loc) · 1.24 KB
/
FFNx.blit.frag
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/****************************************************************************/
// Copyright (C) 2023 Cosmos //
// //
// This file is part of FFNx //
// //
// FFNx is free software: you can redistribute it and/or modify //
// it under the terms of the GNU General Public License as published by //
// the Free Software Foundation, either version 3 of the License //
// //
// FFNx is distributed in the hope that it will be useful, //
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
// GNU General Public License for more details. //
/****************************************************************************/
$input v_texcoord0
#include <bgfx/bgfx_shader.sh>
#include "FFNx.common.sh"
SAMPLER2D(tex_0, 0);
void main()
{
gl_FragColor = texture2D(tex_0, v_texcoord0.xy);
}