玻璃着色器
Shader Glass

原始链接: https://github.com/mausimus/ShaderGlass

ShaderGlass 是一款 Windows 叠加层,可以将 GPU 着色器应用于桌面显示中的任何内容——从模拟器和像素艺术编辑器到现代游戏,甚至是流媒体视频。它拥有超过 1200 个来自 RetroArch 的着色器库,提供 CRT 模拟、图像放大和各种视觉增强效果。 主要功能包括对 USB 采集设备(网络摄像头/采集卡)的支持、可自定义的配置文件以及与 OBS 的兼容性,用于流式传输/录制。最近的更新(v1.2.2,2025 年 8 月)改进了设备采集性能并修复了浏览器视频问题。 ShaderGlass 需要 Windows 10(2004)或 11 以及支持 DirectX 11 的 GPU。它具有高度可定制性,允许用户导入着色器并调整参数。该程序使用现代 C++ 和 DirectX 11 开发,采用 GNU GPL v3.0 许可,并感谢 RetroArch 团队和更广泛的复古游戏社区的贡献。

## Shader Glass:一个屏幕着色器工具 Shader Glass (github.com/mausimus) 是一款新的工具,在Hacker News上受到关注,它可以将着色器应用于整个屏幕。用户对其潜力感到兴奋,超越了展示的CRT效果,并提出了在可访问性测试中的应用——模拟色盲等视觉障碍,以及重现旧显示器(如CRT)的美感。 讨论提到了微软和Sim Daltonism现有的可访问性工具。一个关键的技术问题是Shader Glass如何避免在捕获屏幕时进行递归截图,可能的答案指向Windows API函数。 许多评论者表达了对更广泛平台支持的需求,特别是Linux,以及与Monogame等游戏引擎的集成。有人担心可能在游戏中作弊,但澄清着色器只是修改渲染,无法改变游戏逻辑。一位用户甚至主动提出为Linux上的KWin合成器创建一个插件。
相关文章

原文

License GitHub Stars Downloads Latest Release Beta Release

Overlay for running GPU shaders on top of Windows desktop.

  • applies shader effects on top of desktop, in a floating window or full-screen
  • built-in RetroArch shader library (1200+ shaders!) covering:
    • CRT monitor simulation
    • image upscaling
    • TV, VHS and handheld simulation
    • softening, denoising, blur, sharpen and many more
  • works with most emulators, retro platforms and pixel art editors including:
  • excellent companion for pixel art showing shaded and/or aspect-ratio corrected preview
  • you can even use it on top of YouTube, Twitch or modern games
  • allows capture from a USB source (webcam or capture card)
  • saving and loading profiles
  • import of external .slangp/.slang shaders
  • high customizability with various options, operating modes and shader parameters
  • can be captured by OBS (using Game Capture source)

Check out Online Manual for details.

Latest stable release (v1.2.x, 29 Aug 2025):

  • device capture input (webcam/capture card)
  • hide original mouse cursor when "Capture Cursor" is enabled
  • ability to edit global hotkeys + more of them
  • added Sonkun's presets
  • (1.2.1) improved Device Capture performance & fixes
  • (1.2.2) fix for browser video blanking out when inactive

https://github.com/mausimus/ShaderGlass/releases/download/v1.2.2/ShaderGlass-1.2.2-win-x64.zip

Buy me a coffee!

ShaderGlass on Steam

Join testing of BFI (Black Frame Insertion) and Blur Busters' CRT Beam Simulator shaders here.

Betas and older versions available here


  • Windows 10, version 2004 (build 19041) or Windows 11
    • will work on version 1903 but in limited capacity (no Desktop Glass mode)
    • Windows 11 allows the removal of yellow border (see FAQ for tips on avoiding it on Windows 10)
  • DirectX 11-capable GPU

Click to view on YouTube

ShaderGlass (YouTube)

ShaderGlass running over multiple applications on Windows 11 desktop.

screenshot

In this mode a transparent floating window will apply a shader to anything behind it. 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.

screenshot

When capture is fixed to a specific window it's easier to tune scaling to match the input and image can also be recaptured (screenshot/OBS etc.)

Amiga version of The Secret of Monkey Island (1990) running in FS-UAE with crt-interlaced-halation shader applied.

screenshot

Ninja (1986) for the Atari XL running in Altirra with a TV-OUT simulation shader.

screenshot

The Crimson Diamond (2024), a modern AGS game using HSM MegaBezel STD shader.

screenshot

Police Quest (1987) with its massive half-EGA pixels, aspect-ratio corrected and post-processed using newpixie-crt shader.

screenshot

Rick Dangerous (1989) with C64 monitor shader applied.

screenshot

See Online Manual for option explanations and Frequently Asked Questions.

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

ShaderGlass includes a limited implementation of RetroArch shader back-end using DirectX 11. ShaderGen is a command-line tool for converting Slang shaders into .h files which can be precompiled in ShaderGlass. The conversion process relies on:

  1. glslang for converting Slang/GLSL shaders to SPIR-V
  2. SPIR-V cross-compiler for converting those to HLSL (DX11 format)
  3. Direct3D Shader Compiler (fxc.exe) for pre-compiling into bytecode

  • ShaderGlass application is provided under GNU General Public License v3.0

  • Includes precompiled shaders from libretro/RetroArch shader repository. Please refer to copyright notes within shader code for detailed copyright and license information about each shader.

  • App icon courtesy of Icons-Land

  • Big kudos to RetroArch team, emulator developers and the wide retro community!

  • Thanks to @lonestarr and @EndlesslyFlowering for PRs and everyone for feedback and testing 👍

联系我们 contact @ memedata.com