This is a library to add my shader into your project.
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)
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();
}
}
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.