forked from julianxhokaxhiu/FFNx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFFNX.overlay.vert
34 lines (31 loc) · 1.84 KB
/
FFNX.overlay.vert
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
27
28
29
30
31
32
33
34
/****************************************************************************/
// Copyright (C) 2009 Aali132 //
// Copyright (C) 2018 quantumpencil //
// Copyright (C) 2018 Maxime Bacoux //
// Copyright (C) 2020 myst6re //
// Copyright (C) 2020 Chris Rizzitello //
// Copyright (C) 2020 John Pritchard //
// Copyright (C) 2023 Julian Xhokaxhiu //
// //
// 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 a_position, a_texcoord0, a_color0
$output v_color0, v_texcoord0
#include <bgfx/bgfx_shader.sh>
#include "FFNx.common.sh"
void main()
{
vec2 pos = 2.0*a_position.xy*u_viewTexel.xy;
gl_Position = vec4(pos.x - 1.0, 1.0 - pos.y, 0.0, 1.0);
v_texcoord0 = a_texcoord0;
v_color0 = a_color0;
}