Skip to content

Commit 33d2864

Browse files
committed
small fixes
1 parent f2d26de commit 33d2864

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

examples/004-shader-basics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const VERT_SHADER: &str = r#"#version 330 core
3232
3333
void main() {
3434
gl_Position = vec4(pos.x, pos.y, pos.z, 1.0);
35-
vertex_color = vec4(0.5, 0.0, 0.0, 1.0);
35+
vertex_color = vec4(pos.x, pos.y, pos.z, 1.0);
3636
}
3737
"#;
3838

src/math.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![allow(missing_docs)]
2+
#![allow(unused)]
23

34
//! Module for Math that's needed during the Learn OpenGL Rust tutorials.
45
//!

0 commit comments

Comments
 (0)