Gregory Hainaut
317a464278
gsdx shader: RGB => YUV conversion
...
Required for write feedback emulation
2016-10-14 18:13:20 +02:00
Jason Brown
6ef5607d99
gsdx shader: add a shader to render text for OSD
...
Gregory: code extracted from the OSD PR to reduce conflict
2016-10-14 18:13:20 +02:00
Jason Brown
d84d30fe87
gsdx: Add color component to OGL shaders
2016-10-14 18:13:20 +02:00
Gregory Hainaut
1558220f74
gsdx glsl: create a common header definition
...
* avoid duplication between all the files for UBO
* remove various interface define
2016-04-24 10:54:39 +02:00
Gregory Hainaut
12443da00c
GSdx ogl: ouch the typo exp != exp2
...
Fix some rounding issue on depth effect (shadow in Dot hack games)
2016-04-10 11:31:40 +02:00
Jonathan Li
1659d5974e
gsdx-ogl: Fix scanline, diagonal, triangular TV shaders
...
PSin.p is normalised, so integer conversions won't work. Use
gl_FragCoord instead.
2015-10-25 19:20:22 +00:00
Gregory Hainaut
ca9b5ce11d
gsdx-ogl: move depth conversion shader
...
Add 2 new shaders:
* ps_main12: cast a 16 bit depth to a RGB5A1 color
* ps_main16: cast a a RGB5A1 color to a 16 bit depth
Shader might be used in future commit as it seems Silent Hill uses this
kind of format.
Fix tab/indentation too
2015-09-08 12:41:05 +02:00
Gregory Hainaut
bdc8038e7e
glsl: set a size to gl_ClipDistance array
...
The purpose is to avoid issue on MS-Intel driver without
a dedicated hack in the compilation.
Code doesn't use it so I suspect others implement to discard the
statement.
2015-08-25 18:58:39 +02:00
Gregory Hainaut
b17803bb34
gsdx-ogl: wipeout of GL_ARB_bindless_texture
...
Code is completely broken. It doesn't help to improve speed.
Remove 200 lines ;)
2015-08-08 09:16:49 +02:00
Gregory Hainaut
4a3c145c72
gsdx-ogl: depth support: better support of 16 bits z buffer
...
Fix issue in socom2
2015-08-01 01:28:41 +02:00
Gregory Hainaut
d191ae4aba
glsl: use rounding in convert 4 shader
...
It will avoid texture rouding error with negative number
2015-07-30 18:22:59 +02:00
Gregory Hainaut
036cb229a3
glsl: add various comment for future idea
...
For example GL4 GPU supports special bit operation
2015-07-18 14:40:57 +02:00
Gregory Hainaut
986754bde7
glsl: don't declare gl_FragDepth
...
Fix compilation issue on Mesa driver
(hope it doesn't break Catalyst)
2015-07-05 18:12:36 +02:00
Gregory Hainaut
6121677aa1
gsdx-tc: use a single shader pass to convert texture in 8 bits format
...
It might save a couple of fps
Add a define to test the perf if we keep only the blue channel. It brokes
the code in Prince Of Persia that use the Red/Green channel... Maybe the
speed hack :( Or find a way to replace all if with a lookup table
Note: it is only supported on OpenGL currently
2015-07-01 09:36:54 +02:00
Gregory Hainaut
d29e375f72
gsdx-tc: GPU accelerate 8 bits texture conversion
...
Only native is supported currently
2015-07-01 09:36:54 +02:00
Gregory Hainaut
42e911c78f
gsdx-ogl: mask alpha channel in depth conversion
...
Might not work if depth is recasted as a rt (we lost the alpha channel)
2015-07-01 09:30:20 +02:00
Gregory Hainaut
23f8203a22
gsdx-ogl: add some shaders to convert depth <-> color
...
I'm afraid of rounding error
2015-06-07 12:39:00 +02:00
Gregory Hainaut
a70c3bf5de
glsl: correct the alternate implementation of ps_main1
...
Still not yet enabled by default
Potentially it can be optimized with the dot product but special care
need to be taken to ensure float accuracy.
Bonus: it could work on old GPU (aka DX9)
2015-05-24 13:43:36 +02:00
Gregory Hainaut
358e0d445b
gsdx-ogl: add a shader to convert depth texture into uint
2015-05-19 18:56:32 +02:00
Gregory Hainaut
ec45090358
glsl: implement an alternative of convert 1 shader
...
Code not yet enabled. Quick test show no heavy regression but I need
to carefully validate it.
2015-05-19 13:14:18 +02:00
Gregory Hainaut
b65a62096f
gsdx-ogl: drop support of ENABLE_OGL_DEBUG
...
Stencil can be read by GL debugger due to correct mask configuration
2015-04-30 20:02:51 +02:00
Gregory Hainaut
16e6d0d305
glsl: move shader into a separate directory
...
Only keep glsl_source.h for clarity
2015-04-19 18:49:02 +02:00