mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2025-02-23 18:17:44 +11:00
Mega Bezel V1.4.2_2022-09-27 - Fixed LCD Grid and Easymode
This commit is contained in:
parent
cc988bdeb5
commit
4cf62d9216
6 changed files with 44 additions and 45 deletions
|
@ -3,7 +3,7 @@ Mega Bezel Shader Readme
|
||||||
------------------------------------------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------
|
||||||

|

|
||||||
|
|
||||||
**Version V1.4.0_2022-09-26**
|
**Version V1.4.2_2022-09-27**
|
||||||
----------------------------------------
|
----------------------------------------
|
||||||
----------------------------------------
|
----------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||

|

|
||||||
|
|
||||||
Mega Bezel is updated to V1.4.0_2022-09-26
|
Mega Bezel is updated to V1.4.2_2022-09-27
|
||||||
|
|
||||||
Changes:
|
Changes:
|
||||||
* Updated all the blur paths to match the new paths in the libretro repo
|
* Fixed LCD Grid and Easymode
|
||||||
* Adjusted some caching to be slightly faster
|
|
||||||
|
|
||||||
----------------------------------------------------
|
----------------------------------------------------
|
||||||
--- TODO ---------------------------------------
|
--- TODO ---------------------------------------
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Screen Scale Required Parameters
|
// Screen Scale Required Parameters
|
||||||
#pragma parameter HSM_MEGA_BEZEL_TITLE "[ --- HSM MEGA BEZEL V1.4.0_2022-09-26 --- ]" 0 0 0.01 0.01
|
#pragma parameter HSM_MEGA_BEZEL_TITLE "[ --- HSM MEGA BEZEL V1.4.2_2022-09-27 --- ]" 0 0 0.01 0.01
|
||||||
|
|
||||||
#pragma parameter HSM_RESOLUTION_DEBUG_ON " Show Resolution Info" 0 0 1 1
|
#pragma parameter HSM_RESOLUTION_DEBUG_ON " Show Resolution Info" 0 0 1 1
|
||||||
float HSM_RESOLUTION_DEBUG_ON = global.HSM_RESOLUTION_DEBUG_ON;
|
float HSM_RESOLUTION_DEBUG_ON = global.HSM_RESOLUTION_DEBUG_ON;
|
||||||
|
|
|
@ -408,7 +408,7 @@ float DrawResolutions(vec2 uv, vec2 viewport_size, vec2 screen_size, vec2 dereze
|
||||||
col += GetChar(ch_per, uv);
|
col += GetChar(ch_per, uv);
|
||||||
col += GetChar(ch_4, uv);
|
col += GetChar(ch_4, uv);
|
||||||
col += GetChar(ch_per, uv);
|
col += GetChar(ch_per, uv);
|
||||||
col += GetChar(ch_0, uv);
|
col += GetChar(ch_2, uv);
|
||||||
col += GetChar(ch_spc, uv);
|
col += GetChar(ch_spc, uv);
|
||||||
|
|
||||||
// Date
|
// Date
|
||||||
|
@ -421,7 +421,7 @@ float DrawResolutions(vec2 uv, vec2 viewport_size, vec2 screen_size, vec2 dereze
|
||||||
col += GetChar(ch_9, uv);
|
col += GetChar(ch_9, uv);
|
||||||
col += GetChar(ch_dsh, uv);
|
col += GetChar(ch_dsh, uv);
|
||||||
col += GetChar(ch_2, uv);
|
col += GetChar(ch_2, uv);
|
||||||
col += GetChar(ch_6, uv);
|
col += GetChar(ch_7, uv);
|
||||||
|
|
||||||
|
|
||||||
// Line 01 Title ----------------------------------------------------------
|
// Line 01 Title ----------------------------------------------------------
|
||||||
|
|
|
@ -183,26 +183,26 @@ void main()
|
||||||
|
|
||||||
vec2 cache_bounds_coord = SCREEN_COORD;
|
vec2 cache_bounds_coord = SCREEN_COORD;
|
||||||
|
|
||||||
// If it's the potato preset render the whole frame
|
// // If it's the potato preset render the whole frame
|
||||||
#ifndef IS_POTATO_PRESET
|
// #ifndef IS_POTATO_PRESET
|
||||||
#ifndef IS_NO_REFLECT_PRESET
|
// #ifndef IS_NO_REFLECT_PRESET
|
||||||
vec2 bezel_outside_flat_coord;
|
// vec2 bezel_outside_flat_coord;
|
||||||
vec2 frame_outside_flat_coord;
|
// vec2 frame_outside_flat_coord;
|
||||||
HSM_GetSimpleBezelCoords(TUBE_DIFFUSE_COORD,
|
// HSM_GetSimpleBezelCoords(TUBE_DIFFUSE_COORD,
|
||||||
TUBE_DIFFUSE_SCALE,
|
// TUBE_DIFFUSE_SCALE,
|
||||||
TUBE_SCALE,
|
// TUBE_SCALE,
|
||||||
SCREEN_ASPECT,
|
// SCREEN_ASPECT,
|
||||||
bezel_outside_flat_coord,
|
// bezel_outside_flat_coord,
|
||||||
frame_outside_flat_coord);
|
// frame_outside_flat_coord);
|
||||||
cache_bounds_coord = (frame_outside_flat_coord - 0.5) * 0.9 + 0.5;
|
// cache_bounds_coord = (frame_outside_flat_coord - 0.5) * 0.9 + 0.5;
|
||||||
#endif
|
// #endif
|
||||||
#endif
|
// #endif
|
||||||
|
|
||||||
if (HHLP_IsOutsideCoordSpace(cache_bounds_coord))
|
// if (HHLP_IsOutsideCoordSpace(cache_bounds_coord))
|
||||||
{
|
// {
|
||||||
FragColor = vec4(0);
|
// FragColor = vec4(0);
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
|
||||||
vec2 midpoint = vec2(0.5, 0.5);
|
vec2 midpoint = vec2(0.5, 0.5);
|
||||||
float scan_offset = 0;
|
float scan_offset = 0;
|
||||||
|
|
|
@ -107,26 +107,26 @@ void main()
|
||||||
|
|
||||||
vec2 cache_bounds_coord = SCREEN_COORD;
|
vec2 cache_bounds_coord = SCREEN_COORD;
|
||||||
|
|
||||||
// If it's the potato preset render the whole frame
|
// // If it's the potato preset render the whole frame
|
||||||
#ifndef IS_POTATO_PRESET
|
// #ifndef IS_POTATO_PRESET
|
||||||
#ifndef IS_NO_REFLECT_PRESET
|
// #ifndef IS_NO_REFLECT_PRESET
|
||||||
vec2 bezel_outside_flat_coord;
|
// vec2 bezel_outside_flat_coord;
|
||||||
vec2 frame_outside_flat_coord;
|
// vec2 frame_outside_flat_coord;
|
||||||
HSM_GetSimpleBezelCoords(TUBE_DIFFUSE_COORD,
|
// HSM_GetSimpleBezelCoords(TUBE_DIFFUSE_COORD,
|
||||||
TUBE_DIFFUSE_SCALE,
|
// TUBE_DIFFUSE_SCALE,
|
||||||
TUBE_SCALE,
|
// TUBE_SCALE,
|
||||||
SCREEN_ASPECT,
|
// SCREEN_ASPECT,
|
||||||
bezel_outside_flat_coord,
|
// bezel_outside_flat_coord,
|
||||||
frame_outside_flat_coord);
|
// frame_outside_flat_coord);
|
||||||
cache_bounds_coord = (frame_outside_flat_coord - 0.5) * 0.9 + 0.5;
|
// cache_bounds_coord = (frame_outside_flat_coord - 0.5) * 0.9 + 0.5;
|
||||||
#endif
|
// #endif
|
||||||
#endif
|
// #endif
|
||||||
|
|
||||||
if (HHLP_IsOutsideCoordSpace(cache_bounds_coord))
|
// if (HHLP_IsOutsideCoordSpace(cache_bounds_coord))
|
||||||
{
|
// {
|
||||||
FragColor = vec4(0);
|
// FragColor = vec4(0);
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
|
||||||
vec2 screen_curved_coord = HSM_GetCRTShaderCurvedCoord(SCREEN_COORD);
|
vec2 screen_curved_coord = HSM_GetCRTShaderCurvedCoord(SCREEN_COORD);
|
||||||
vec2 curved_coord = HSM_GetMirrorWrappedCoord(screen_curved_coord);
|
vec2 curved_coord = HSM_GetMirrorWrappedCoord(screen_curved_coord);
|
||||||
|
|
Loading…
Add table
Reference in a new issue