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)