You are viewing a potentially older version of this package. View all versions.
MidnightsCompondium-Shader_Studio-1.0.0 icon

Shader Studio

In-game graphics studio: 70+ stackable effects (bloom, SSAO, reflections, cel shading, CRT, VHS...), presets, Unity post-processing & shadow controls, and a live HLSL editor to write your own shaders.

Date uploaded 14 hours ago
Version 1.0.0
Download link MidnightsCompondium-Shader_Studio-1.0.0.zip
Downloads 18
Dependency string MidnightsCompondium-Shader_Studio-1.0.0

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 70+ 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

70+ built-in effects

Category Effects
Color Color Grading (exposure, contrast, saturation, vibrance, white balance, levels, lift/gamma/gain), Tonemapping (ACES, Reinhard, Filmic, Hejl), Hue Shift, Split Toning, Channel Mixer, Gradient Map, Posterize, Black & White, Sepia, Invert, Color Isolation, Film Looks, Color Blindness simulation
Light & Glow Bloom (6-level), God Rays, Lens Flare, Anamorphic Streaks
Lighting & 3D Ambient Occlusion (SSAO), Screen-Space Reflections, Screen-Space Shadows (sun, fixed or headlamp light), Fog (distance + height + drifting noise), Sky Replacer (stars, aurora, sunset), Scanner Pulse, World Grid / Hologram, Debug Views
Blur & Lens Gaussian Blur, Zoom Blur, Motion Blur, Depth of Field (bokeh, auto focus), Tilt Shift, Chromatic Aberration, Lens Distortion / Fisheye, Vignette, Film Grain, Sharpen, FXAA, Cinematic Bars
Stylize Cartoon / Cel Shading, Outlines (incl. blueprint mode), Oil Painting (Kuwahara), Watercolor, Pencil Sketch, Comic Book, Halftone (CMYK), ASCII Art (+ digital rain), Pixelate, Emboss, Neon Edges, Stained Glass, Hexagon Mosaic
Retro CRT Monitor, VHS Tape, PS1 Graphics, Game Boy, Retro Palettes (PICO-8, C64, CGA...), Dither, Digital Glitch, Old Film, Datamosh
Vision & Distortion Night Vision, Thermal Vision, Underwater, Heat Haze, Drunk, Kaleidoscope, Mirror, Ghost Trails, Feedback Tunnel, Shockwave, Twirl, Rain on Lens

Effects can be stacked in any order, duplicated, mixed and reordered. Every effect has a Mix slider.

31 presets for testing

Cartoon, Comic Book, Oil Painting, Watercolor, Sketchbook, Cinematic, Ultra Graphics, Retro CRT, Game Boy, PS1, VHS, Old Film, Noir, Sin City, Thermal, Night Vision, The Matrix, Vaporwave, Dreamy, Underwater, Drunk, Nightmare, Neon Tron, Hologram, Stained Glass, Psychedelic, Miniature, PICO-8, Halftone, Scanner Pulse, Depth Debug. 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.

CHANGELOG

Changelog

1.2.0

  • New icon.
  • Rain rebuilt: real 3D wind-blown raindrops that stay behind walls, splash crowns and proper ripples on floors, water running down walls, drifting rain curtains in the distance, and drops that catch the light.
  • Puddles rebuilt (Wet World): sharper screen-space reflections with a sensible fallback, Fresnel water, rain ripples and wind ruffles that bend the reflection, damp darker edges around each puddle and a sun glint.
  • 100 new effects (291 total):
    • Weather: Hailstorm, Autumn Wind, Cherry Blossoms, Sea of Clouds, Meteor Shower, Glowing Spores, Rising Bubbles, Foggy Glass, Rainbow, Blinding Sun, Electric Arcs, Desert Mirage.
    • World FX: The Floor Is Lava, Flood (rising water), Crystal World, Iridescent, Corruption, Ancient Runes, Paint Splatter, Bioluminescent, Altitude Colors, Ink Spread, Code World, Grass, Light From Above, Rim Light, Surface Tint, Neon Noir.
    • Camera & HUD: Height HUD (your real height), Compass, Drone Feed, Periscope, Microscope, Vertical Video (9:16), Photo Mode Grid, Keyhole, Anaglyph 3D, Bokeh Lights.
    • Status Effects: Bleeding Vision, Flashbang, Zero Gravity, Fever, Vertigo, Seasick, Possessed, Nearsighted.
    • Photo: Vintage Postcard, Film Strip, Contact Sheet, Film Negative, Halation, Sun Bleached, Pinhole Camera, Split Diopter.
    • Color: Color LUT (with editable LUT images), Auto Levels, Auto White Balance, Color Temperature (Kelvin), Hue Swap, Monotone.
    • Stylize: Brush Strokes, Bubble Mosaic, Glitter, Chalkboard, Woodblock Print, Fresco, Notebook Doodle, Felt Craft, Contour Lines, Primary Blocks, Gold Repair, Pixel Art, Sticker, Ink Blot Test, Origami.
    • Retro: Composite Video, Disc Rot, 2600 Lines, LCD Ghosting, ANSI Art, DOS VGA, Receipt Printer, Fax Machine, Pocket LCD, Tape Pause, Dot Matrix Print.
    • Distortion: Mirror Maze, Infinite Picture, Tunnel Warp, Magnifying Glass, Screen Rotation, Bulge & Pinch, Sliding Puzzle, Echo Clones, Earthquake, Black Hole, Waving Flag, Folded Paper, Drain Swirl, Liquid Smear.
  • 41 new presets (105 total).

1.1.0

  • 120 new effects (191 total), including:
    • Weather (14): Rain, Snowfall, Snow Cover, Wet World (reflective puddles), Sandstorm, Toxic Gas, Volumetric Fog, Ground Mist, Lightning Storm, Ash Fall, Embers, Dust Motes, Fireflies and Cloud Shadows.
    • World FX (18): Clay Render, Voxel World, World Patterns, Chrome World, Overgrowth, Rust & Decay, Frozen World, Relight, Flashlight, Caustic Light, Disco Ball, Sonar, Proximity Glow, Breathing Walls, Rainbow World, Synthwave, Paper Model and Atmospheric Perspective.
    • Camera (12): Security Camera, Bodycam, Camcorder, Sniper Scope, Helmet Visor, Gas Mask, Dirty Lens, Cracked Screen, Frosted Lens, Bad Webcam, Insect Eyes and Little Planet.
    • Status Effects (10): Low Health, Adrenaline, Concussion, Poisoned, Hallucination, Exhaustion, Hypothermia, Spirit Vision, Rage and Drowsy.
    • More: lighting moods, photo and film looks, color tools, art styles, retro displays and distortions.
  • 33 new presets (64 total).

1.0.0

  • First release: effect stack with 71 built-in shaders, 31 presets, live HLSL code editor with hot reload, Unity FX (Post Processing v2) overrides and Rendering settings.