Standardized the header section of the GLSL files and shell scripts.

This commit is contained in:
Leon Styhre 2021-05-14 18:52:38 +02:00
parent 01112408f6
commit d986fc7eaa
12 changed files with 97 additions and 98 deletions

View file

@ -1,10 +1,10 @@
// //
// Implementation based on the article "Efficient Gaussian blur with linear sampling" // Implementation based on the article "Efficient Gaussian blur with linear sampling"
// http://rastergrid.com/blog/2010/09/efficient-gaussian-blur-with-linear-sampling/ // http://rastergrid.com/blog/2010/09/efficient-gaussian-blur-with-linear-sampling/
// A version for MasterEffect Reborn, a standalone version, and a custom shader version for SweetFX // A version for MasterEffect Reborn, a standalone version, and a custom shader version for SweetFX
// can be found at http://reshade.me/forum/shader-presentation/27-gaussian-blur-bloom-unsharpmask // can be found at http://reshade.me/forum/shader-presentation/27-gaussian-blur-bloom-unsharpmask
// //
// Borrowed from the RetroArch project and modified for ES-DE by Leon Styhre. // Taken from the RetroArch project and modified for ES-DE.
// //
#define HW 1.00 #define HW 1.00

View file

@ -1,10 +1,10 @@
// //
// Implementation based on the article "Efficient Gaussian blur with linear sampling" // Implementation based on the article "Efficient Gaussian blur with linear sampling"
// http://rastergrid.com/blog/2010/09/efficient-gaussian-blur-with-linear-sampling/ // http://rastergrid.com/blog/2010/09/efficient-gaussian-blur-with-linear-sampling/
// A version for MasterEffect Reborn, a standalone version, and a custom shader version for SweetFX // A version for MasterEffect Reborn, a standalone version, and a custom shader version for SweetFX
// can be found at http://reshade.me/forum/shader-presentation/27-gaussian-blur-bloom-unsharpmask // can be found at http://reshade.me/forum/shader-presentation/27-gaussian-blur-bloom-unsharpmask
// //
// Borrowed from the RetroArch project and modified for ES-DE by Leon Styhre. // Taken from the RetroArch project and modified for ES-DE.
// //
#define VW 1.00 #define VW 1.00

View file

@ -1,9 +1,11 @@
// SPDX-License-Identifier: MIT
// //
// desaturate.glsl // EmulationStation Desktop Edition
// desaturate.glsl
// //
// Desaturates textures. // Desaturates textures.
// The uniform variable 'saturation' sets the saturation intensity. // The uniform variable 'saturation' sets the saturation intensity.
// Setting this to the value 0 results in complete desaturation (grayscale). // Setting this to the value 0 results in complete desaturation (grayscale).
// //
#if defined(VERTEX) #if defined(VERTEX)

View file

@ -1,9 +1,11 @@
// SPDX-License-Identifier: MIT
// //
// dim.glsl // EmulationStation Desktop Edition
// dim.glsl
// //
// Dims textures. // Dims textures.
// The uniform variable 'dimValue' sets the amount of dimming. // The uniform variable 'dimValue' sets the amount of dimming.
// Setting this to the value 0 results in a completely black screen. // Setting this to the value 0 results in a completely black screen.
// //
#if defined(VERTEX) #if defined(VERTEX)

View file

@ -1,9 +1,11 @@
// SPDX-License-Identifier: MIT
// //
// opacity.glsl // EmulationStation Desktop Edition
// opacity.glsl
// //
// Changes the opacity of textures. // Changes the opacity of textures.
// The uniform variable 'opacity' sets the opacity. // The uniform variable 'opacity' sets the opacity.
// Setting this to the value 0 results in an invisible texture. // Setting this to the value 0 results in an invisible texture.
// //
#if defined(VERTEX) #if defined(VERTEX)

View file

@ -3,21 +3,21 @@
// //
// Ported by Hyllian. // Ported by Hyllian.
// //
// This program is free software; you can redistribute it and/or // This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License // modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2 // as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version. // of the License, or (at your option) any later version.
// //
// This program is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details. // GNU General Public License for more details.
// //
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software // along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// //
// Borrowed from the RetroArch project and modified for ES-DE by Leon Styhre. // Taken from the RetroArch project and modified for ES-DE.
// //
#if defined(VERTEX) #if defined(VERTEX)
@ -138,7 +138,6 @@ void main()
vec2 texture_coords = pixel_center * SourceSize.zw; vec2 texture_coords = pixel_center * SourceSize.zw;
vec4 color = TEX2D(texture_coords); vec4 color = TEX2D(texture_coords);
float dx = coords.x - pixel_center.x; float dx = coords.x - pixel_center.x;
float h_weight_00 = dx / SPOT_WIDTH; float h_weight_00 = dx / SPOT_WIDTH;

View file

@ -1,17 +1,16 @@
#!/usr/bin/bash #!/usr/bin/bash
# SPDX-License-Identifier: MIT
# #
# generate_man_page.sh # EmulationStation Desktop Edition
# Generate a Unix manual page for EmulationStation Desktop Edition. # generate_man_page.sh
# #
# The script takes no arguments and replaces the man page file es-app/assets/emulationstation.6.gz # Generates the Unix manual page.
# It has to be run from within the tools directory. # The script takes no arguments and replaces the man page file es-app/assets/emulationstation.6.gz
# It has to be run from within the tools directory.
# #
# The command help2man must be installed, or the script will fail. # The command help2man must be installed, or the script will fail.
# #
# This script is intended to only be used on Linux systems. # This script is only intended to be used on Linux systems.
#
# Leon Styhre
# 2020-07-16
# #
if [ ! -f ../es-app/CMakeLists.txt ]; then if [ ! -f ../es-app/CMakeLists.txt ]; then

View file

@ -1,14 +1,13 @@
#!/bin/sh #!/bin/sh
# SPDX-License-Identifier: MIT
# #
# macOS_change_dylib_rpaths.sh # EmulationStation Desktop Edition
# Update the dylib paths to use rpaths instead of absolute paths. # macOS_change_dylib_rpaths.sh
# #
# This script does not do much error checking so the results should be verified manually # Updates the dylib paths to use rpaths instead of absolute paths.
# afterwards using the "otool -L" command. # This script does not do much error checking so the results should be verified manually
# Changes are needed to this script when moving to a new version for any of the libraries. # afterwards using the "otool -L" command.
# # Changes are needed to this script when moving to a new version for any of the libraries.
# Leon Styhre
# 2021-05-13
# #
export FREETYPE_FILENAME=libfreetype.6.dylib export FREETYPE_FILENAME=libfreetype.6.dylib

View file

@ -1,24 +1,22 @@
#!/usr/bin/bash #!/usr/bin/bash
# SPDX-License-Identifier: MIT
# #
# mame_create_index_files.sh # EmulationStation Desktop Edition
# EmulationStation MAME index files creation. # mame_create_index_files.sh
# #
# As input, this script takes the MAME driver information XML file from the official # As input, this script takes the MAME driver information XML file from the official
# MAME release and generates the files mamebioses.xml, mamedevices.xml and mamenames.xml. # MAME release and generates the files mamebioses.xml, mamedevices.xml and mamenames.xml.
# #
# There is not much error checking going on here, this script is not intended to be # There is not much error checking going on here, this script is not intended to be run
# used by the end user. # by the end user.
# #
# xmlstarlet must be installed or this script will fail. # xmlstarlet must be installed or this script will fail.
# #
# Download the driver file from here: # Download the driver file from here:
# https://www.mamedev.org/release.php # https://www.mamedev.org/release.php
# It's enough to download the driver information, not the complete emulator. # It's enough to download the driver information, not the complete emulator.
# #
# This script is intended to only be used on Linux systems. # This script is only intended to be used on Linux systems.
#
# Leon Styhre
# 2020-06-16
# #
if [ $# -ne 1 ]; then if [ $# -ne 1 ]; then

View file

@ -1,20 +1,18 @@
#!/usr/bin/bash #!/usr/bin/bash
# SPDX-License-Identifier: MIT
# #
# mame_merge_index_files.sh # EmulationStation Desktop Edition
# EmulationStation MAME ROM index files merging. # mame_merge_index_files.sh
# #
# This script merges older ROM index files with newly generated ones. # This script merges older ROM index files with newly generated ones.
# As the MAME project drops and renames ROM files from time to time, we need to # As the MAME project drops and renames ROM files from time to time, we need to
# include the old ROM names as well even if not supported by the newest MAME version. # include the old ROM names as well even if not supported by the newest MAME version.
# The user may very well run an older MAME version and may therefore have an old ROM set. # The user may very well run an older MAME version and may therefore have an old ROM set.
# #
# There is not much error checking going on here, this script is not intended to be # There is not much error checking going on here, this script is not intended to be run
# used by the end user. # by the end user.
# #
# This script is intended to only be used on Linux systems. # This script is only intended to be used on Linux systems.
#
# Leon Styhre
# 2020-06-16
# #
if [ $# -ne 3 ]; then if [ $# -ne 3 ]; then

View file

@ -1,12 +1,12 @@
#!/usr/bin/bash #!/usr/bin/bash
# SPDX-License-Identifier: MIT
# #
# update_theme_formatversion.sh # EmulationStation Desktop Edition
# Update the format version of all the XML files in a theme set. # update_theme_formatversion.sh
# #
# This script is intended to only be used on Linux systems. # Updates the format version of all the XML files in a theme set.
# #
# Leon Styhre # This script is only intended to be used on Linux systems.
# 2020-06-22
# #
if [ $# -ne 2 ]; then if [ $# -ne 2 ]; then

View file

@ -1,25 +1,25 @@
#!/usr/bin/bash #!/usr/bin/bash
# SPDX-License-Identifier: MIT
# #
# update_version_string.sh # EmulationStation Desktop Edition
# Updates the version string for EmulationStation Desktop Edition. # update_version_string.sh
# #
# This script takes as arguments the major, minor and patch numbers as well as an optional # Updates the version string for EmulationStation Desktop Edition.
# alphanumeric suffix and updates all the necessary files to indicate a new software version. # This script takes as arguments the major, minor and patch numbers as well as an optional
# The script has to be run from within the tools directory. # alphanumeric suffix and updates all the necessary files to indicate a new software version.
# The script has to be run from within the tools directory.
# #
# Example use: # Example use:
# ./update_version_string.sh 1 0 0 beta1 # ./update_version_string.sh 1 0 0 beta1
# #
# The following files are updated by this script: # The following files are updated by this script:
# es-app/CMakeLists.txt # es-app/CMakeLists.txt
# es-app/src/EmulationStation.h # es-app/src/EmulationStation.h
# es-app/assets/EmulationStation-DE_Info.plist # es-app/assets/EmulationStation-DE_Info.plist
# es-app/assets/emulationstation.desktop # es-app/assets/emulationstation.desktop
# #
# This script is intended to only be used on Linux systems. # This script is only intended to be used on Linux systems.
# #
# Leon Styhre
# 2020-12-30
# #
if [ ! -f ../es-app/CMakeLists.txt ]; then if [ ! -f ../es-app/CMakeLists.txt ]; then