MidnightsCompondium-Shader_Studio icon

Shader Studio

In-game graphics studio: 191 stackable effects (weather, bloom, SSAO, reflections, cel shading, CRT, VHS...), 64 presets, Unity post-processing & shadow controls and a live HLSL shader editor.

Last updated 2 hours ago
Total downloads 30
Total rating 0 
Categories Tools Libraries Misc Tweaks
Dependency string MidnightsCompondium-Shader_Studio-1.1.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2305 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2305

README

Shader Studio

A complete in-game graphics and post-processing studio for White Knuckle. Stack any combination of 191 effects, tweak everything live with sliders, load presets, or write your own shaders in real HLSL (like Godot's shader system) and watch them appear on the game instantly.

Press F8 in game to open the menu. Press F9 to flip all effects on/off for a quick before/after.


Features

191 built-in effects

Category Effects
Weather (14) Ash Fall, Cloud Shadows, Dust Motes, Embers, Fireflies, Ground Mist, Lightning Storm, Rain, Sandstorm, Snow Cover, Snowfall, Toxic Gas, Volumetric Fog, Wet World
World FX (18) Atmospheric Perspective, Breathing Walls, Caustic Light, Chrome World, Clay Render, Disco Ball, Flashlight, Frozen World, Overgrowth, Paper Model, Proximity Glow, Rainbow World, Relight, Rust & Decay, Sonar, Synthwave, Voxel World, World Patterns
Lighting & 3D (8) Ambient Occlusion (SSAO), Debug Views, Fog, Reflections (SSR), Scanner Pulse, Screen-Space Shadows, Sky Replacer, World Grid / Hologram
Light & Glow (11) Alarm Beacon, Anamorphic Streaks, Blacklight, Blood Moon, Bloom, Candlelight, God Rays, Golden Hour, Lens Flare, Moonlight, Police Lights
Color (22) Black & White, Channel Mixer, Clarity, Color Blindness, Color Cycling, Color Grading, Color Isolation, Curves, Dehaze, Film Looks, Focus Color, Gradient Map, Hue Shift, Invert, Posterize, Selective Color, Sepia, Shadows / Highlights, Smooth & Denoise, Split Toning, Tonemapping, Visibility Boost
Photo (10) Cyanotype, Double Exposure, Film Burn, HDR Look, Infrared Film, Instant Photo, Light Leaks, Lomography, Soft Focus, Tintype
Blur & Lens (12) Anti-Aliasing (FXAA), Chromatic Aberration, Cinematic Bars, Depth of Field, Film Grain, Gaussian Blur, Lens Distortion, Motion Blur, Sharpen, Tilt Shift, Vignette, Zoom Blur
Stylize (33) ASCII Art, Cartoon / Cel Shading, Charcoal, Comic Book, Crayon Drawing, Cross Stitch, Cubist Shards, Emboss, Halftone, Hexagon Mosaic, Ink Wash, Knitted, Linocut, Low Poly, Manga, Misprint Comic, Mosaic Tiles, Neon Edges, Newspaper, Oil Painting (Kuwahara), Outlines, Paper Cutout, Pencil Sketch, Pixelate, Plastic Bricks, Pointillism, Pop Art Grid, Risograph, Silhouette, Stained Glass, Stippling, Watercolor, X-Ray
Retro (17) CRT Monitor, Datamosh, Deep Fried, Digital Glitch, Dither, Game Boy, JPEG Artifacts, LCD Close-up, Old Film, PS1 Graphics, Red Visor Display, Retro Palette, Signal Loss, Tape Loader, Teletext, VHS Tape, Vector Display
Camera (12) Bad Webcam, Bodycam, Camcorder, Cracked Screen, Dirty Lens, Frosted Lens, Gas Mask, Helmet Visor, Insect Eyes, Little Planet, Security Camera, Sniper Scope
Status Effects (10) Adrenaline, Concussion, Drowsy, Exhaustion, Hallucination, Hypothermia, Low Health, Poisoned, Rage, Spirit Vision
Vision (2) Night Vision, Thermal Vision
Distortion (22) Dimension Rift, Drunk, Feedback Tunnel, Frosted Window, Ghost Trails, Heat Haze, Hypno Spiral, Jelly World, Kaleidoscope, Melting, Mirror, Pixel Sort, Rain on Lens, Shattered Glass, Shockwave, Speed Lines, Stop Motion, Time Smear, Twirl, Underwater, Water Drops, Wave Warp

Effects can be stacked in any order, duplicated, mixed and reordered. Every effect has a Mix slider. Many effects understand the 3D world (depth, surfaces, normals), so weather sits behind walls, snow lands on ledges and fog fills real space.

64 presets for testing

Cartoon, Comic Book, Oil Painting, Watercolor, Sketchbook, Cinematic, Ultra Graphics, Retro CRT, Game Boy, PS1, VHS Found Footage, Old Film, Noir, Sin City, Thermal Vision, Night Vision, The Matrix, Vaporwave, Dreamy, Underwater, Drunk, Nightmare, Neon Tron, Hologram, Stained Glass, Psychedelic, Miniature, PICO-8, Halftone Print, Scanner Pulse, Depth Debug, Rainy Night, Blizzard, Sandstorm, Toxic Zone, Haunted Mist, Horror Flashlight, Inferno, Firefly Grove, Abandoned, Clay Model, Blocky World, Liquid Chrome, Blind Echo, Synthwave, CCTV, Bodycam, Space Helmet, Gas Mask, Dying, Bad Trip, Paper Diorama, Ink Painting, Misprint Comic, Manga, Blood Moon, Golden Hour, Blacklight Party, Lockdown, Vector Arcade, Sunken Ruins, Dreamscape, Silhouette, Claymation. Save your own presets and share them as .json files.

Write your own shaders

The Code Editor tab is a live HLSL editor with line numbers and error messages. Every built-in effect is a normal .hlsl file you can open, read and copy.

// @name Red Alert
// @category Custom
uniform float strength : range(0, 1) = 0.5;   // becomes a slider
uniform float3 tint : color = float3(1, 0.2, 0.1);

float4 effect(float2 uv)
{
    float3 c = scene(uv).rgb;
    float pulse = 0.5 + 0.5 * sin(TIME * 4.0);
    return float4(lerp(c, c * tint, strength * pulse), 1);
}
  • Uniforms become UI automatically: range(min,max) sliders, color pickers, enum("A","B") buttons, bool toggles, and texture2D images loaded from files.
  • Multi-pass: #pass Blur 0.5 runs a pass at half resolution; read it back with samplePass(0, uv).
  • Real 3D data: depth, world position, normals, previous frame, camera motion and sun direction let you write SSAO, reflections, fog, scanners and motion blur yourself.
  • Hot reload: your shaders live in BepInEx/config/ShaderStudio/shaders/. Edit them in VS Code or any editor and they update in game when you save.
  • Full API list: BepInEx/config/ShaderStudio/shaders/API_REFERENCE.hlsl.

Unity FX tab

Overrides the game's own Unity Post Processing Stack (Bloom, Ambient Occlusion, Color Grading, Depth of Field, Motion Blur, Chromatic Aberration, Vignette, Grain, Auto Exposure, Lens Distortion and the game's outline effect). Every parameter is editable.

Rendering tab

Shadow quality, resolution, distance and cascades, forcing soft or hard shadows on all lights, shadow darkness, light brightness, range and tint, ambient light, engine fog, reflection intensity, FOV, MSAA, HDR, per-pixel lights, anisotropic filtering and LOD bias.


Requirements and notes

  • Custom shaders (the effect stack) need DirectX 11. White Knuckle normally runs on DX11. If the menu says otherwise, add -force-d3d11 to the game's Steam launch options. The Unity FX and Rendering tabs work on any graphics API.
  • Shaders are compiled by Windows' own shader compiler (d3dcompiler_47.dll, included with Windows 10 and 11).
  • Heavy effects (SSR, SSAO, Kuwahara, Depth of Field) cost GPU time. Most run their expensive work at half resolution.
  • Settings: BepInEx/config/com.burak.shaderstudio.cfg (hotkeys, menu size, camera).
  • Your last setup is restored automatically on the next launch.

Manual install

Copy the contents of the plugins folder to BepInEx/plugins/ShaderStudio/. Keep ShaderStudio.dll, ShaderStudioNative.dll, shaders/ and presets/ together.