Comment cleanup

This commit is contained in:
Joshua Barretto 2019-06-06 06:46:02 +01:00
parent 9617f5f17e
commit eb2d1f3278
2 changed files with 1 additions and 3 deletions

View File

@ -230,9 +230,7 @@ impl Renderer {
/// Queue the clearing of the color and depth targets ready for a new frame to be rendered.
/// TODO: Make a version of this that doesn't clear the colour target for speed.
pub fn clear(&mut self, col: Rgba<f32>) {
//self.encoder.clear(&self.tgt_color_view, col.into_array());
self.encoder.clear_depth(&self.tgt_depth_view, 1.0);
//self.encoder.clear(&self.win_color_view, col.into_array());
self.encoder.clear_depth(&self.win_depth_view, 1.0);
}

View File

@ -742,7 +742,7 @@ impl<S: Skeleton> FigureState<S> {
) {
let mat = Mat4::<f32>::identity()
* Mat4::translation_3d(pos)
* Mat4::rotation_z(-ori.x.atan2(ori.y)) // + f32::consts::PI / 2.0);
* Mat4::rotation_z(-ori.x.atan2(ori.y))
* Mat4::scaling_3d(Vec3::from(0.8));
let locals = FigureLocals::new(mat, col);