maray 0.3.1

JIT Ray Tracing using basic math
Documentation
1
2
3
4
5
6
7
8
9
10
11
use maray::*;
use maray::textures::channel;

fn main() {
    let color = [
        app(channel(0, 0), x(), y()),
        app(channel(0, 1), x(), y()),
        app(channel(0, 2), x(), nat(1024) - y()),
    ];
    save("test.maray", ([1024; 2], color)).unwrap();
}