Created
January 22, 2018 01:05
-
-
Save panicbit/5e74487caf7030c9e0016d0d4aaf8572 to your computer and use it in GitHub Desktop.
This file contains 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
uniforms { | |
projection: [4; fvec4] | |
} | |
inputs { | |
inpos, | |
inclr | |
} | |
outputs { | |
outpos: position, | |
outclr: color | |
} | |
fn main() { | |
let inpos = fvec4(inpos.xyz, 1.); | |
outpos = projection * inpos; | |
outclr = inclr; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment