Skip to content

Instantly share code, notes, and snippets.

View martymcmodding's full-sized avatar
🔮
Pondering my orb

Pascal Gilcher martymcmodding

🔮
Pondering my orb
View GitHub Profile
/*=============================================================================
ReShade 5 effect file
github.com/martymcmodding
Author: Pascal Gilcher / Marty McFly
ReShade Motion Estimation Shader for dense 2D UV-space motion vectors
Based on ReShade Motion Estimation by Jakob Wapenhensch
(https://github.com/JakobPCoder/ReshadeMotionEstimation)
@martymcmodding
martymcmodding / autocrop.py
Created January 20, 2022 14:21
Batch cropping images (black bar removal)
from PIL import Image
import glob
for filepath in glob.iglob(r'*.png'):
im = Image.open(filepath)
#print("Processing: ", filepath, " ", im.format, im.size, im.mode)
box = im.convert('RGB').getbbox()
#size of black bars in each axis
x1 = box[0]
@martymcmodding
martymcmodding / CMAA2.fx
Created May 16, 2021 21:56
CMAA 2 for ReShade
/*=============================================================================
ReShade 4 effect file
github.com/martymcmodding
Rough port of CMAA2 to ReShade by Pascal Gilcher
I do not claim any copyright to any of the work used in this product
CMAA2 (Copyright (c) 2018, Intel Corporation) is licensed under
http://www.apache.org/licenses/LICENSE-2.0
@martymcmodding
martymcmodding / MMPX.fx
Last active May 31, 2023 13:47
McGuire & Mara, MMPX Style-Preserving Pixel Art Magnification, port to ReShade
/*
Copyright 2020 Morgan McGuire & Mara Gagiu.
Provided under the Open Source MIT license https://opensource.org/licenses/MIT
by Morgan McGuire and Mara Gagiu.
*/
/*=============================================================================
ReShade 4 effect file
github.com/martymcmodding
@martymcmodding
martymcmodding / CAS.fx
Created July 12, 2019 12:37
ReShade port of AMD FidelityFX' Contrast Adaptive Sharpen (CAS) - various optimizations
// LICENSE
// =======
// Copyright (c) 2017-2019 Advanced Micro Devices, Inc. All rights reserved.
// -------
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy,
// modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following conditions:
// -------
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the