VHS Effect (Library)
VanderCat VanderCat Library update 3y ago

VHS Effect (Library)

Now go and make backrooms gamemode with that

favorite13favorites
thumb_up5upvotes
hard_drive 0 MB folder 5 files build Engine v10 history Last update 1179d ago
open_in_new View on sbox.game

About This Package

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)

Media

3,538
Total Users
4,374
Total Sessions
12.8 days
Total Playtime
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
Project Template:
Cs Proj Name:
Compiler: Sandbox, SANDBOX;ADDON;DEBUG, 1701;1702;1591;, Array, Array
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