Skip to content

Commit

Permalink
Merge pull request #1389 from IvanUkhov/identity
Browse files Browse the repository at this point in the history
Use identity() instead of from_scale(1.0)
  • Loading branch information
tomaka committed Jan 3, 2016
2 parents 2ce2273 + e321897 commit ce8ebd3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/deferred.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use std::io::Cursor;
mod support;

fn main() {
use cgmath::SquareMatrix;
use glium::DisplayBuild;

// building the display, ie. the main object
Expand Down Expand Up @@ -277,7 +278,7 @@ fn main() {
let view_center: cgmath::Point3<f32> = cgmath::Point3::new(0.0, 0.0, 0.0);
let view_up: cgmath::Vector3<f32> = cgmath::Vector3::new(0.0, 1.0, 0.0);
let view_matrix: cgmath::Matrix4<f32> = cgmath::Matrix4::look_at(view_eye, view_center, view_up);
let model_matrix: cgmath::Matrix4<f32> = cgmath::Matrix4::from_scale(1.0);
let model_matrix: cgmath::Matrix4<f32> = cgmath::Matrix4::identity();

let lights = [
Light {
Expand Down

0 comments on commit ce8ebd3

Please sign in to comment.