mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-09-09 06:20:58 +02:00
byuu says: Changelog (since v076): - video filters and shaders now populate inside main menu; no longer have to select them as files - fixed 2xSaI, Super 2xSaI and Super Eagle on 32-bit platforms; still buggy on 64-bit Windows - fixed linear mirroring issues (fixes Mega Man X dash bug) - fixed RAM memory mapping bug in Sufami Turbo games - home folder is now %APPDATA%/bsnes or ~/.config/bsnes - added paths.cfg file, which will allow you to specify custom paths for any file types - save states and cheat files for multi-slot games are based on slot names instead of BIOS names - fixed compilation warning on OS X with nall::decimal - fixed calculation bug in nall::fp - Makefile now has options variable, example: make options=debugger - configuration files and cheat database can now reside in the same folder as the binary itself - updated to 2011-03-11 release of mightymo's cheat database
23 lines
633 B
GLSL
Executable File
23 lines
633 B
GLSL
Executable File
<?xml version="1.0" encoding="UTF-8"?>
|
|
<shader language="GLSL">
|
|
<fragment><![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>
|