Skip to content

Commit

Permalink
Merge branch 'emissive' into spheres_simd_wrapped
Browse files Browse the repository at this point in the history
  • Loading branch information
bitshifter committed May 26, 2018
2 parents f79c500 + 3746863 commit daf38d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/glium_window.rs
Expand Up @@ -159,9 +159,9 @@ pub fn start_loop(params: Params, camera: Camera, scene: Scene, max_frames: Opti
let mut mapping = buffer_texture.map();
for (texel, rgb) in mapping.iter_mut().zip(rgb_buffer.iter()) {
*texel = (
(255.99 * rgb.0) as u8,
(255.99 * rgb.1) as u8,
(255.99 * rgb.2) as u8,
(255.99 * rgb.0).max(0.0) as u8,
(255.99 * rgb.1).max(0.0) as u8,
(255.99 * rgb.2).max(0.0) as u8,
255,
);
}
Expand Down

0 comments on commit daf38d7

Please sign in to comment.