mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2024-11-22 15:51:30 +11:00
Mega Bezel V1.4.2_2022-09-27 - Fixed LCD Grid and Easymode
This commit is contained in:
parent
cc988bdeb5
commit
4cf62d9216
|
@ -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**
|
||||
----------------------------------------
|
||||
----------------------------------------
|
||||
|
||||
|
|
|
@ -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 ---------------------------------------
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 ----------------------------------------------------------
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue