Created
October 30, 2016 00:05
-
-
Save sleexyz/6fd2f9be3bfb0439ce998c77e788d860 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# 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