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 cb7edb7

Browse files
committed
ultraviolet has a bug but it works if you break it up
1 parent 1c60180 commit cb7edb7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎examples/013-multi-cube.rs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,9 @@ fn main() {
294294

295295
for (i, position) in CUBE_POSITIONS.iter().copied().enumerate() {
296296
let model = Mat4::from_translation(position)
297-
* Mat4::from_euler_angles(time * (1.0 + i as f32), 2.0, 3.0);
297+
* Mat4::from_rotation_y(3.0)
298+
* Mat4::from_rotation_x((1.0 + i as f32) * 0.8)
299+
* Mat4::from_rotation_z(time * (1.0 + i as f32));
298300

299301
glUniformMatrix4fv(model_loc, 1, GL_FALSE, model.as_ptr());
300302

0 commit comments

Comments
(0)

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