forked from jdgleaver/ppsspp_shaders
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbead.vsh
32 lines (24 loc) · 886 Bytes
/
bead.vsh
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
/*
bead fragment shader
Original code by Themaister, released into the public domain
'Ported' (i.e. copy/paste) to PPSSPP format by jdgleaver
This program 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 2 of the License, or (at your option)
any later version.
*** Requires rendering resolution to be set to 1xPSP
*** Absolutely requires a display resolution of at least 1080p
*/
uniform vec2 u_texelDelta;
attribute vec4 a_position;
attribute vec2 a_texcoord0;
varying vec2 v_texcoord0;
// Have to use standard names to ensure compatibility with
// Vulkan backend...
varying vec2 v_texcoord1; // pixel_no
void main()
{
v_texcoord0 = a_texcoord0;
gl_Position = a_position;
v_texcoord1 = v_texcoord0 * (1.0 / u_texelDelta.xy); // pixel_no
}