From 5f4b58803d1f1d0c61a031e8563df4024682b328 Mon Sep 17 00:00:00 2001 From: yum Date: Mon, 4 Nov 2024 01:04:32 -0800 Subject: Add noise mask option to cutout shading mode --- atrix256.cginc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'atrix256.cginc') diff --git a/atrix256.cginc b/atrix256.cginc index 5236715..3eb164c 100644 --- a/atrix256.cginc +++ b/atrix256.cginc @@ -33,5 +33,10 @@ float ign(float2 screen_px) { 0.00583715 * screen_px.y, 1), 1); } +float ign_anim(float2 screen_px) { + float frame = frac(_Time[0]*.0005) * 64; + return ign(screen_px + frame * 5.588238f); +} + #endif // __ATRIX256_INC -- cgit v1.2.3