mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-04-02 10:42:14 -04:00
byuu says: This release brings improved Super Game Boy emulation, the final SHA256 hashes for the DSP-(1,1B,2,3,4) and ST-(0010,0011) coprocessors, user interface improvements, and major internal code restructuring. Changelog (since v074): - completely rewrote memory sub-system to support 1-byte granularity in XML mapping - removed Memory inheritance and MMIO class completely, any address can be mapped to any function now - SuperFX: removed SuperFXBus : Bus, now implemented manually - SA-1: removed SA1Bus : Bus, now implemented manually - entire bus mapping is now static, happens once on cartridge load - as a result, read/write handlers now handle MMC mapping; slower average case, far faster worst case - namespace memory is no more, RAM arrays are stored inside the chips they are owned by now - GameBoy: improved CPU HALT emulation, fixes Zelda: Link's Awakening scrolling - GameBoy: added serial emulation (cannot connect to another GB yet), fixes Shin Megami Tensei - Devichil - GameBoy: improved LCD STAT emulation, fixes Sagaia - ui: added fullscreen support (F11 key), video settings allows for three scale settings - ui: fixed brightness, contrast, gamma, audio volume, input frequency values on program startup - ui: since Qt is dead, config file becomes bsnes.cfg once again - Super Game Boy: you can now load the BIOS without a game inserted to see a pretty white box - ui-gameboy: can be built without SNES components now - libsnes: now a UI target, compile with 'make ui=ui-libsnes' - libsnes: added WRAM, APURAM, VRAM, OAM, CGRAM access (cheat search, etc) - source: removed launcher/, as the Qt port is now gone - source: Makefile restructuring to better support new ui targets - source: lots of other internal code cleanup work
30 lines
876 B
GLSL
Executable file
30 lines
876 B
GLSL
Executable file
<?xml version="1.0" encoding="UTF-8"?>
|
|
<shader language="HLSL">
|
|
<source><![CDATA[
|
|
texture rubyTexture;
|
|
|
|
float4 vec;
|
|
|
|
sampler s0 = sampler_state { texture = <rubyTexture>; };
|
|
float3 LightColor = { 1.0, 0.7, 0.5 };
|
|
float3 DarkColor = { 0.2, 0.05, 0.0 };
|
|
|
|
float4 DiffColorPass(in float2 Tex : TEXCOORD0) : COLOR0
|
|
{
|
|
vec.x = 0.5;
|
|
vec.y = 1.0;
|
|
float3 scnColor = LightColor * tex2D(s0, Tex).xyz;
|
|
float3 grayXfer = float3(0.3, 0.59, 0.11);
|
|
float gray = dot(grayXfer, scnColor);
|
|
float3 muted = lerp(scnColor, gray.xxx, vec.x);
|
|
float3 sepia = lerp(DarkColor, LightColor, gray);
|
|
float3 result = lerp(muted, sepia, vec.y);
|
|
return float4(result, 1);
|
|
}
|
|
|
|
Technique T0
|
|
{
|
|
pass p0 { PixelShader = compile ps_2_0 DiffColorPass(); }
|
|
}
|
|
]]></source>
|
|
</shader>
|