Skip to content

Commit

Permalink
0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
mausimus committed Jun 4, 2023
1 parent 364617a commit dbf6896
Show file tree
Hide file tree
Showing 9 changed files with 61 additions and 12 deletions.
38 changes: 38 additions & 0 deletions FAQ.md
@@ -0,0 +1,38 @@
# ShaderGlass FAQ

---

### > I'm seeing black only

Make sure you're using __Windows 10, version 2004__ (build 19041) or __Windows 11__.

---

### > I see yellow border around captured screen/window

It's possible to disable yellow border but only on Windows 11. If you are using Windows 11 and still seeing the border,
open Windows Settings app and search for "screenshot borders". Make sure all the options and ShaderGlass are allowed to
remove the border per below:

![screenshot](images/windows-settings.png)

---

### > I can't capture using OBS

OBS can capture ShaderGlass but only as a Game Capture source (not Window Capture). Use "Capture specific window" within
Game Capture to select ShaderGlass window only.

![screenshot](images/obs.png)

---

## > Can I save a profile?

Yes, you can save shader profiles and even load them on startup via a command line parameter. See [README](README.md) for details.

---

## > Can I...

Please read through [README](README.md) to find functionality you are looking for.
23 changes: 14 additions & 9 deletions README.md
Expand Up @@ -19,19 +19,17 @@ Overlay for running GPU shaders on top of Windows desktop.
* you can even use it on top of YouTube, Twitch or modern games
* saving and loading profiles
* multiple operating modes, including borderless fullscreen
* can be captured by OBS (using Game Capture source)

<br/>

### Download

Latest release (v0.7, 19 Dec 2021):
* load .png/.jpg image file as input
* lock capture area to clone a portion of the screen
* free resizing & scaling support in Windowed Clone mode
* option to account for display DPI scaling in pixel size adjustment
* shader fixes
Latest release (v0.8, 4 Jun 2023):
* ability to disable global hotkeys
* fix: shader parameters are lost when minimizing/restarting

https://github.com/mausimus/ShaderGlass/releases/download/v0.7/ShaderGlass-0.7-win-x64.zip
https://github.com/mausimus/ShaderGlass/releases/download/v0.8/ShaderGlass-0.8-win-x64.zip

<br/>

Expand Down Expand Up @@ -61,7 +59,6 @@ Demonstration video (YouTube):
##### Desktop Glass mode

In this mode a transparent floating window will apply a shader to anything behind it.
This mode is not OBS-friendly, use Window Glass or Clone modes to capture ShaderGlass.
Requires Windows 10 2004 - on 1903/1909 you will see only a black window if you switch to this mode.

Wikipedia in Chrome processed by crt-geom shader which applies scanlines and CRT curvature.
Expand Down Expand Up @@ -112,6 +109,8 @@ with C64 monitor shader applied.

Currently supported options are:

* _Processing -> Enable Global Hotkeys_ - toggle use of global hotkeys (if they conflict with another app)

* _Input -> Desktop_ - captures the whole desktop or an individual monitor, defaults to Glass mode

* _Lock Current Area_ - always capture current area even if ShaderGlass window is moved
Expand Down Expand Up @@ -220,9 +219,15 @@ and/or aspect ratio correction in ShaderGlass and enjoy the game.

<br/>

### Frequently Asked Questions

See FAQ [here](FAQ.md).

<br/>

### Code

Built using Visual Studio 2019 using ISO C++ 20, Windows SDK 10.0.20348, Windows Capture API and DirectX 11.
Built using Visual Studio 2022 using ISO C++ 20, Windows SDK 10.0.22000, Windows Capture API and DirectX 11.

ShaderGlass includes a limited implementation of RetroArch shader back-end.
[ShaderGen](ShaderGen) is a command-line tool for converting Slang shaders
Expand Down
5 changes: 3 additions & 2 deletions ShaderGlass.sln
@@ -1,14 +1,15 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30523.141
# Visual Studio Version 17
VisualStudioVersion = 17.6.33712.159
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ShaderGlass", "ShaderGlass\ShaderGlass.vcxproj", "{D3CA23C5-8AB7-454F-8461-ACDBA8FB7289}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ShaderGen", "ShaderGen\ShaderGen.vcxproj", "{0AC8C8E0-010B-4829-9282-060EAB89D5D0}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{6B5AD96E-AB36-49F5-8BBD-29308CFBA704}"
ProjectSection(SolutionItems) = preProject
FAQ.md = FAQ.md
Tools\glslangValidator.exe = Tools\glslangValidator.exe
LICENSE = LICENSE
README.md = README.md
Expand Down
Binary file modified ShaderGlass/ShaderGlass.rc
Binary file not shown.
1 change: 1 addition & 0 deletions ShaderGlass/ShaderGlass.vcxproj
Expand Up @@ -149,6 +149,7 @@
<Optimization>MaxSpeed</Optimization>
<FavorSizeOrSpeed>Neither</FavorSizeOrSpeed>
<AdditionalOptions>/await /Zc:twoPhase- /Gw %(AdditionalOptions)</AdditionalOptions>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand Down
3 changes: 3 additions & 0 deletions ShaderGlass/ShaderWindow.cpp
Expand Up @@ -1095,6 +1095,9 @@ LRESULT CALLBACK ShaderWindow::WndProc(HWND hWnd, UINT message, WPARAM wParam, L
ShellExecute(0, 0, L"https://github.com/mausimus/ShaderGlass", 0, 0, SW_SHOW);
#endif
break;
case ID_HELP_FREQUENTLYASKEDQUESTIONS:
ShellExecute(0, 0, L"https://github.com/mausimus/ShaderGlass/FAQ.md", 0, 0, SW_SHOW);
break;
default:
if(wmId >= WM_USER && wmId <= 0x7FFF)
{
Expand Down
3 changes: 2 additions & 1 deletion ShaderGlass/resource.h
Expand Up @@ -135,6 +135,7 @@
#define IDM_FULLSCREEN 32892
#define IDM_SCREENSHOT 32893
#define IDM_PAUSE 32894
#define ID_HELP_FREQUENTLYASKEDQUESTIONS 32895
#define IDC_STATIC -1
#define IDC_STATIC_LABEL -1

Expand All @@ -144,7 +145,7 @@
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NO_MFC 1
#define _APS_NEXT_RESOURCE_VALUE 130
#define _APS_NEXT_COMMAND_VALUE 32895
#define _APS_NEXT_COMMAND_VALUE 32896
#define _APS_NEXT_CONTROL_VALUE 1001
#define _APS_NEXT_SYMED_VALUE 115
#endif
Expand Down
Binary file added images/obs.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/windows-settings.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dbf6896

Please sign in to comment.