show headset view in monitor window

This commit is contained in:
2016-09-30 23:51:48 -07:00
parent 708af6720c
commit 8faa60b921
2 changed files with 2 additions and 4 deletions

View File

@@ -93,9 +93,7 @@ impl ViewRoot<gfx_device_gl::Device, ColorFormat, DepthFormat> {
&buffers.depth);
}
// draw monitor window
window.encoder.update_constant_buffer(&self.trans,
&Trans { matrix: *na::Matrix4::one().as_ref() });
window.encoder.clear(&window.output_color, [0.1, 0.2, 0.3, 1.0]);
window.encoder.clear(&window.output_color, [0.005, 0.005, 0.01, 1.0]);
window.encoder.clear_depth(&window.output_stencil, 1.0);
scene.render(&mut window.factory,
&mut window.encoder,