VHS Effect (Library)

Library

Now go and make backrooms gamemode with that

VanderCat updated 3y ago 0 MB engine 10
thumb_up 5 open_in_new View on sbox.game
VHS Effect (Library)

VHS Effect (Library)

This is a library to add my shader into your project.

How-To:

1. Create materials

First of all you need to create materials with shader "vhs" and/or "interlacing". You can tweak different settings (they will be hot updated in game once you hook up the effect)

2. Create Render Hook

Example:

using VanderCat.Vhs;
[SceneCamera.AutomaticRenderHook]
public partial class VhsCamera : RenderHook {
    VhsEffect _vhsEffect = new("materials/vhs_effect.vmat"); 
    public override void OnStage( SceneCamera target, Stage renderStage ) { 
        if (renderStage != Stage.AfterPostProcess) return; 
        _vhsEffect.Blit(); 
    } 
}

Note on noise:


it must be a texture with rgba channels filled with noise (or whatever you want really, feel free to experiment)

my texture was just a 256x256 image with Photoshop noise applied on it with gausian blur filter (1px)

3,538
Total Users
4,374
Total Sessions
12.8 days
Total Playtime
0 recorded entries
Rank Player Score Recorded
refresh
Discovering package leaderboards...
Package ID: vandercat.vhs_library
Created: 2023-05-18 14:49 UTC
Updated: 2023-06-02 09:52 UTC
Type: library
Public: Yes
Version: 17938
files: 5
Size: 0.2 MB
Engine Version: 10
Asset Version ID: 17938
Version Created: 2023-06-02 09:52 UTC
Hash: -8940828269537274690
Manifest: Open manifest

more_horiz Additional Properties

Project Template:
Compiler: {"RootNamespace":"Sandbox","DefineConstants":"SANDBOX;ADDON;DEBUG","NoWarn":"1701;1702;1591;","References":[],"DistinctReferences":[]}
Summary: Now go and make backrooms gamemode with that
Description: This is a library to add my shader into your project. # How-To: ## 1. Create materials First of all you need to create materials with shader "vhs" and/or "interlacing". You can tweak different settings (they will be hot updated in game once you hook up the effect) ## 2. Create Render Hook Example: ```csharp using VanderCat.Vhs; [SceneCamera.AutomaticRenderHook] public partial class VhsCamera : RenderHook { VhsEffect _vhsEffect = new("materials/vhs_effect.vmat"); public override void OnStage( SceneCamera target, Stage renderStage ) { if (renderStage != Stage.AfterPostProcess) return; _vhsEffect.Blit(); } } ``` ### Note on noise: it must be a texture with rgba channels filled with noise (or whatever you want really, feel free to experiment) my texture was just a 256x256 image with noise applied on it in Photoshop and then gaussian blur with size of 1 pixel applied.
Public: true
Replace Tags: analog vhs effect filter postprocessing
new_releases Latest Update Jun 2, 2023
Glitches
17938 Jun 2, 2023
Glitches
17633 May 21, 2023
Blur Tweak
17614 May 20, 2023
NOISE UPDATE !!
17564 May 18, 2023
Initial Release
info Live API Passthrough & Removal Notice

This file manifest and asset metadata are retrieved live directly from the official Facepunch s&box public API. s&box Explorer does not host, store, or redistribute any package files. All download links route directly to Facepunch CDN servers.