Blinn-Phong
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
|
||||
use std::time::SystemTime;
|
||||
|
||||
use cgmath::{Deg, InnerSpace, Quaternion, Rotation3};
|
||||
use cgmath::{Deg, InnerSpace, Quaternion, Rotation3, vec3};
|
||||
use winit::event::Event;
|
||||
|
||||
use level::{load_level, save_level};
|
||||
@@ -73,7 +73,7 @@ impl Game for TestGame {
|
||||
}
|
||||
|
||||
// Custom game object stuff
|
||||
let light_pos = self.player.camera.position * -1.0;
|
||||
let light_pos = vec3(2.0, 0.5, 2.0);
|
||||
if !self.paused {
|
||||
self.player.update(frame_time, &self.input, renderer);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user