mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-04-02 10:42:14 -04:00
byuu says: A few issues crept up in the last release, this should take care of them. First, it seems that the 32-bit runtime on 64-bit versions of Windows have 64-bit time functions; whereas true 32-bit Windows does not. This was causing a DLL error when attempting to load bsnes v090. Second, when there were more than 2,000 files in the same folder on Windows, it was lagging the file browser. With OV2's help, I've fixed that and it'll now load the list instantly. Lastly, I've included the missing video shaders this time.
22 lines
644 B
GLSL
22 lines
644 B
GLSL
<?xml version="1.0" encoding="UTF-8"?>
|
|
<shader language="GLSL">
|
|
<fragment filter="linear"><![CDATA[
|
|
uniform sampler2D rubyTexture;
|
|
uniform vec2 rubyInputSize;
|
|
uniform vec2 rubyTextureSize;
|
|
|
|
#define distortion 0.2
|
|
|
|
vec2 barrelDistortion(vec2 coord) {
|
|
vec2 cc = coord - 0.5;
|
|
float dist = dot(cc, cc);
|
|
return coord + cc * (dist + distortion * dist * dist) * distortion;
|
|
}
|
|
|
|
void main(void) {
|
|
vec2 coord = barrelDistortion (gl_TexCoord[0] * rubyTextureSize / rubyInputSize) * rubyInputSize / rubyTextureSize;
|
|
|
|
gl_FragColor = texture2D(rubyTexture, coord);
|
|
}
|
|
]]></fragment>
|
|
</shader>
|