mirror of
https://github.com/libretro/RetroArch
synced 2025-02-04 03:40:03 +00:00
HDR-TV. Bright as shit, lol.
This commit is contained in:
parent
daa0e611a6
commit
ea4aad7b07
2
config.h
2
config.h
@ -65,7 +65,7 @@ static const bool vsync = true;
|
||||
static const bool video_smooth = false;
|
||||
|
||||
// Path to custom Cg shader. If using custom shaders, it is recommended to disable video_smooth and VIDEO_FILTER.
|
||||
static const char *cg_shader_path = "hqflt/pixellate.cg";
|
||||
static const char *cg_shader_path = "hqflt/HDR-TV.cg";
|
||||
|
||||
// On resize and fullscreen, rendering area will stay 4:3
|
||||
static const bool force_aspect = true;
|
||||
|
15
hqflt/HDR-TV.cg
Executable file
15
hqflt/HDR-TV.cg
Executable file
@ -0,0 +1,15 @@
|
||||
struct output
|
||||
{
|
||||
float4 color : COLOR;
|
||||
};
|
||||
|
||||
output main(uniform sampler2D rubyTexture : TEXUNIT0, float2 texCoord : TEXCOORD0)
|
||||
{
|
||||
float4 rgb = tex2D(rubyTexture, texCoord);
|
||||
float4 intens = smoothstep(0.2,0.8,rgb) + normalize(float4(rgb.xyz, 1.0));
|
||||
|
||||
if(fract(texCoord.y * 0.5) > 0.5) intens = rgb * 0.8;
|
||||
output OUT;
|
||||
OUT.color = intens;
|
||||
return OUT;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user