sebcrozet / kiss3d

Keep it simple, stupid 3d graphics engine for Rust.
http://kiss3d.org
BSD 3-Clause "New" or "Revised" License
1.49k stars 173 forks source link

Support alpha / transparency #138

Open kgreenek opened 5 years ago

kgreenek commented 5 years ago

For example:

let mut cube = window.add_cube(1.0, 1.0, 1.0);
let alpha = 0.8;
cube.set_color(1.0, 0.0, 0.0, alpha);

Alternatively:

let mut cube = window.add_cube(1.0, 1.0, 1.0);
cube.set_color(1.0, 0.0, 0.0);
cube.set_transparency(0.8);
toolness commented 5 years ago

I think this might be a duplicate of #1?