mirror of https://github.com/Leinnan/doppler.git
grass
This commit is contained in:
parent
9a156ecbec
commit
8b6a15b466
|
|
@ -61,6 +61,19 @@ impl Client for ExampleClient {
|
|||
transform: Transform::default(),
|
||||
model: cache.get_model("resources/objects/robot/robot.obj"),
|
||||
};
|
||||
let grass = ModelComponent {
|
||||
transform: Transform::default(),
|
||||
model: cache.get_model_ext("resources/objects/grass/grass.obj", Some("foliage.png")),
|
||||
};
|
||||
let gaz_tank = ModelComponent {
|
||||
transform: Transform {
|
||||
position: vec3(8.3, 0.0, 3.0),
|
||||
rotation: vec3(0.0,120.0,0.0),
|
||||
scale: 0.025,
|
||||
..Transform::default()
|
||||
},
|
||||
model: cache.get_model("resources/objects/gaz_tank/gaz_tank.obj"),
|
||||
};
|
||||
let tree = ModelComponent {
|
||||
transform: Transform {
|
||||
position: vec3(10.0, 0.0, 26.0),
|
||||
|
|
@ -89,7 +102,7 @@ impl Client for ExampleClient {
|
|||
transform: Transform::default(),
|
||||
model: cache.get_model("resources/objects/ruins/ruins.obj"),
|
||||
};
|
||||
self.models = vec![tree, tree2, tree3, ground, robot, ruins];
|
||||
self.models = vec![tree, tree2, tree3, ground, robot, ruins,gaz_tank, grass];
|
||||
}
|
||||
|
||||
unsafe fn draw(&mut self) {
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ use self::CameraMovement::*;
|
|||
// Default camera values
|
||||
const YAW: f32 = -90.0;
|
||||
const PITCH: f32 = 0.0;
|
||||
const SPEED: f32 = 2.5;
|
||||
const SPEED: f32 = 4.5;
|
||||
const SENSITIVTY: f32 = 0.1;
|
||||
const ZOOM: f32 = 45.0;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue