Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a069bb9

Browse files
committed
Update 013-multi-cube.rs
1 parent 117d63d commit a069bb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎examples/013-multi-cube.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ fn main() {
262262
glGetUniformLocation(shader_program.0, name)
263263
};
264264

265-
let view = Mat4::from_translation(Vec3::new(0.0, 0.0, -2.0));
265+
let view = Mat4::from_translation(Vec3::new(0.0, 0.0, -3.0));
266266
unsafe { glUniformMatrix4fv(view_loc, 1, GL_FALSE, view.as_ptr()) };
267267

268268
let projection = ultraviolet::projection::rh_yup::perspective_gl(
@@ -286,7 +286,7 @@ fn main() {
286286
// now the events are clear.
287287

288288
// update the "world state".
289-
let time = sdl.get_ticks() as f32 / 1000.0_f32;
289+
let time = sdl.get_ticks() as f32 / 10000.0_f32;
290290

291291
// and then draw!
292292
unsafe {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /