White Knuckle
You are viewing a potentially older version of this package. View Latest Version
Install with App

Details

Date Uploaded
Downloads
84
Size
330KB

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.

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.