Skip to content

Instantly share code, notes, and snippets.

@sleexyz
Created October 30, 2016 00:05
Show Gist options
  • Save sleexyz/6fd2f9be3bfb0439ce998c77e788d860 to your computer and use it in GitHub Desktop.
Save sleexyz/6fd2f9be3bfb0439ce998c77e788d860 to your computer and use it in GitHub Desktop.
{-# LANGUAGE GADTs #-}
module Jam_2016_10_29 where
import Util
output = toProgram $ vec4 (v, v, v, 1)
& over (webcamF (texture2D channel2) uvN)
& mix 0.1 (bbF (texture2D backBuffer) uvN)
v2alpha v = vec4 (x_ v, y_ v, z_ v, z_ . hsv id $ v)
webcamF x = x
& lmap (view norm)
& rmap v2alpha
bbF x = x
& lmap (view norm)
& lmap (\x -> x - rep 0.5 x)
v = gate 0 0.5 ((lmap (*10)) (rep 1) time)
& const 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment