GithubHelp home page GithubHelp logo

emulator-shaders's People

emulator-shaders's Issues

fix LCD3x to match GBA / NDS screen

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

Add support for HQx

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

Rename HQx2 and HQx4 filters

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

HQ2x doesn't seem right

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:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.