add xBR-lv2 opengl shader
This commit is contained in:
parent
f85ffee65a
commit
1cfa20802c
4 changed files with 352 additions and 2 deletions
|
@ -276,7 +276,7 @@ static void cfg_create_ini()
|
|||
"; Preliminary libretro shader support - (Requires 'renderer=opengl*') https://github.com/libretro/glsl-shaders\n"
|
||||
"; 2x scaling example: https://imgur.com/a/kxsM1oY - 4x scaling example: https://imgur.com/a/wjrhpFV\n"
|
||||
"; You can specify a full path to a .glsl shader file here or use one of the values listed below\n"
|
||||
"; Possible values: Nearest neighbor, Bilinear, Bicubic, Lanczos\n"
|
||||
"; Possible values: Nearest neighbor, Bilinear, Bicubic, Lanczos, xBR-lv2\n"
|
||||
"shader=Shaders\\cubic\\catmull-rom-bilinear.glsl\n"
|
||||
"\n"
|
||||
"; Window position, -32000 = center to screen\n"
|
||||
|
|
|
@ -179,16 +179,19 @@ static void ogl_build_programs()
|
|||
{
|
||||
g_ogl.scale_program =
|
||||
oglu_build_program(
|
||||
_stricmp(g_ddraw->shader, "xBR-lv2") == 0 ? XBR_LV2_VERT_SHADER :
|
||||
PASSTHROUGH_VERT_SHADER,
|
||||
_stricmp(g_ddraw->shader, "Nearest neighbor") == 0 ? PASSTHROUGH_FRAG_SHADER :
|
||||
_stricmp(g_ddraw->shader, "Bilinear") == 0 ? PASSTHROUGH_FRAG_SHADER :
|
||||
_stricmp(g_ddraw->shader, "Lanczos") == 0 ? LANCZOS2_FRAG_SHADER :
|
||||
_stricmp(g_ddraw->shader, "xBR-lv2") == 0 ? XBR_LV2_FRAG_SHADER :
|
||||
CATMULL_ROM_FRAG_SHADER,
|
||||
core_profile);
|
||||
|
||||
bilinear =
|
||||
_stricmp(g_ddraw->shader, "Nearest neighbor") != 0 &&
|
||||
_stricmp(g_ddraw->shader, "Lanczos") != 0;
|
||||
_stricmp(g_ddraw->shader, "Lanczos") != 0 &&
|
||||
_stricmp(g_ddraw->shader, "xBR-lv2") != 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue