Merge pull request #311 from HyperspaceMadness/master

Mega Bezel is updated to V1.4.2_2022-09-27
This commit is contained in:
hizzlekizzle 2022-09-27 16:06:14 -05:00 committed by GitHub
commit db07810d29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 44 additions and 45 deletions

View file

@ -3,7 +3,7 @@ Mega Bezel Shader Readme
------------------------------------------------------------------------------------------------------------
![Mega Bezel Logo](MegaBezelLogo.png)
**Version V1.4.0_2022-09-26**
**Version V1.4.2_2022-09-27**
----------------------------------------
----------------------------------------

View file

@ -1,10 +1,9 @@
![Mega_Bezel_Logo|512x256, 75%](upload://6PNkvcMF9Go9Wnk6OJXfYR1opXI.png)
Mega Bezel is updated to V1.4.0_2022-09-26
Mega Bezel is updated to V1.4.2_2022-09-27
Changes:
* Updated all the blur paths to match the new paths in the libretro repo
* Adjusted some caching to be slightly faster
* Fixed LCD Grid and Easymode
----------------------------------------------------
--- TODO ---------------------------------------

View file

@ -23,7 +23,7 @@
*/
// 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
float HSM_RESOLUTION_DEBUG_ON = global.HSM_RESOLUTION_DEBUG_ON;

View file

@ -408,7 +408,7 @@ float DrawResolutions(vec2 uv, vec2 viewport_size, vec2 screen_size, vec2 dereze
col += GetChar(ch_per, uv);
col += GetChar(ch_4, uv);
col += GetChar(ch_per, uv);
col += GetChar(ch_0, uv);
col += GetChar(ch_2, uv);
col += GetChar(ch_spc, uv);
// 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_dsh, uv);
col += GetChar(ch_2, uv);
col += GetChar(ch_6, uv);
col += GetChar(ch_7, uv);
// Line 01 Title ----------------------------------------------------------

View file

@ -183,26 +183,26 @@ void main()
vec2 cache_bounds_coord = SCREEN_COORD;
// If it's the potato preset render the whole frame
#ifndef IS_POTATO_PRESET
#ifndef IS_NO_REFLECT_PRESET
vec2 bezel_outside_flat_coord;
vec2 frame_outside_flat_coord;
HSM_GetSimpleBezelCoords(TUBE_DIFFUSE_COORD,
TUBE_DIFFUSE_SCALE,
TUBE_SCALE,
SCREEN_ASPECT,
bezel_outside_flat_coord,
frame_outside_flat_coord);
cache_bounds_coord = (frame_outside_flat_coord - 0.5) * 0.9 + 0.5;
#endif
#endif
// // If it's the potato preset render the whole frame
// #ifndef IS_POTATO_PRESET
// #ifndef IS_NO_REFLECT_PRESET
// vec2 bezel_outside_flat_coord;
// vec2 frame_outside_flat_coord;
// HSM_GetSimpleBezelCoords(TUBE_DIFFUSE_COORD,
// TUBE_DIFFUSE_SCALE,
// TUBE_SCALE,
// SCREEN_ASPECT,
// bezel_outside_flat_coord,
// frame_outside_flat_coord);
// cache_bounds_coord = (frame_outside_flat_coord - 0.5) * 0.9 + 0.5;
// #endif
// #endif
if (HHLP_IsOutsideCoordSpace(cache_bounds_coord))
{
FragColor = vec4(0);
return;
}
// if (HHLP_IsOutsideCoordSpace(cache_bounds_coord))
// {
// FragColor = vec4(0);
// return;
// }
vec2 midpoint = vec2(0.5, 0.5);
float scan_offset = 0;

View file

@ -107,26 +107,26 @@ void main()
vec2 cache_bounds_coord = SCREEN_COORD;
// If it's the potato preset render the whole frame
#ifndef IS_POTATO_PRESET
#ifndef IS_NO_REFLECT_PRESET
vec2 bezel_outside_flat_coord;
vec2 frame_outside_flat_coord;
HSM_GetSimpleBezelCoords(TUBE_DIFFUSE_COORD,
TUBE_DIFFUSE_SCALE,
TUBE_SCALE,
SCREEN_ASPECT,
bezel_outside_flat_coord,
frame_outside_flat_coord);
cache_bounds_coord = (frame_outside_flat_coord - 0.5) * 0.9 + 0.5;
#endif
#endif
// // If it's the potato preset render the whole frame
// #ifndef IS_POTATO_PRESET
// #ifndef IS_NO_REFLECT_PRESET
// vec2 bezel_outside_flat_coord;
// vec2 frame_outside_flat_coord;
// HSM_GetSimpleBezelCoords(TUBE_DIFFUSE_COORD,
// TUBE_DIFFUSE_SCALE,
// TUBE_SCALE,
// SCREEN_ASPECT,
// bezel_outside_flat_coord,
// frame_outside_flat_coord);
// cache_bounds_coord = (frame_outside_flat_coord - 0.5) * 0.9 + 0.5;
// #endif
// #endif
if (HHLP_IsOutsideCoordSpace(cache_bounds_coord))
{
FragColor = vec4(0);
return;
}
// if (HHLP_IsOutsideCoordSpace(cache_bounds_coord))
// {
// FragColor = vec4(0);
// return;
// }
vec2 screen_curved_coord = HSM_GetCRTShaderCurvedCoord(SCREEN_COORD);
vec2 curved_coord = HSM_GetMirrorWrappedCoord(screen_curved_coord);