panchokoster / emulator-shaders Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/emulator-shaders
Automatically exported from code.google.com/p/emulator-shaders
Problem:
The current LCD3x is too saturated and bright for GBA games.
-----------------
Solution:
Change filter coeffs, decrase saturation and add contrast.
------------------
changed filter coeffs (half of current values):
const float brighten_scanlines = 8.0;
const float brighten_lcd = 2.0;
-------------------
changed main function:
void main() {
vec2 angle = vTexCoord * omega;
float yfactor = (brighten_scanlines + sin(angle.y)) / (brighten_scanlines +
1.0);
vec3 xfactors = (brighten_lcd + sin(angle.x + offsets)) / (brighten_lcd + 1.0);
const vec3 coef = vec3(0.299, 0.587, 0.114);
vec4 color = texture2D(rubyTexture, vTexCoord);
color = ((color-0.5)*1.1+0.5); /* adjust contrast to +10% */
vec3 gray = vec3(dot(color.rgb, coef));
gl_FragColor.rgb = yfactor * xfactors * vec3(mix(color.rgb, gray, 0.35)); /*
-35% saturation*/
}
---------------
Note:
Result may be different on every device. I compared side by side my NDS and my
phone (Huawei Ascend P6) running MyBoy emulator and the colors match
subjectively 95% with this change.
Original issue reported on code.google.com by [email protected]
on 16 Jul 2014 at 12:08
I've completed a shader implementation of HQx available here:
https://github.com/Armada651/hqx-shader
I've not yet implemented a GLSL version, because the shader requires the
following functionality:
* Passing additional textures to the shader.
* Applying multiply shaders to the output for better performance. (optional)
Could you add this functionality? I can provide a GLSL version if necessary,
the shader code itself is pretty simple.
Attached you'll find a screenshot of the HQ4x shader running in RetroArch,
they've included it in their common shaders repository.
Original issue reported on code.google.com by [email protected]
on 4 Jun 2014 at 9:27
I've ported some of the xBR GLSL shaders to OpenGL ES and added them to the
shader pack.
Unfortunately performance on my Nexus 7 is too low currently.
Original issue reported on code.google.com by [email protected]
on 23 May 2014 at 1:22
Attachments:
The filters currently named HQx4 and HQx2 are easily confused with the original
HQx filters developed by Maxim Stepin. You can also see in the comment headers
that they're actually named very differently.
The filters currently named HQx4 and HQx2 were originally developed for
Playstation emulators and only do upscaling without any of the complex rule
sets used in the original HQx filters.
Originally these filters were developed as a higher quality version of the
2xScale and 4xScale shaders, so I suggest renaming them to 2xScaleHQ and
4xScaleHQ to make the situation less confusing.
The shaders were originally part of this package:
https://www.dropbox.com/s/o2r0z95fhhea52c/epsxe_Shaders.7z
Original issue reported on code.google.com by [email protected]
on 25 May 2014 at 1:07
What steps will reproduce the problem?
1. Load Minish cap in MyBoy
2. Go to Video GLSL Shader settings
3. Select HQ2x
What is the expected output? What do you see instead?
Some areas of color were wacky. This doesn't happen with HQ4x.
What version of the product are you using? On what operating system?
Android 4.1.2 Samsung Note 10.1
MyBoy and Shaders released on May 20, 2014
Please provide any additional information below.
See sample screen caps for reference.
Original issue reported on code.google.com by [email protected]
on 20 May 2014 at 11:36
Attachments:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.