Skip to content

Instantly share code, notes, and snippets.

@panicbit
Created January 22, 2018 01:05
Show Gist options
  • Save panicbit/5e74487caf7030c9e0016d0d4aaf8572 to your computer and use it in GitHub Desktop.
Save panicbit/5e74487caf7030c9e0016d0d4aaf8572 to your computer and use it in GitHub Desktop.
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