-
Notifications
You must be signed in to change notification settings - Fork 408
Open
Description
the provided code for the shaders in the tutorial are missing 2 lines (in the tutorial):
Current code:
let vertex_shader_src = r#"
in vec2 position;
void main() {
gl_Position = vec4(position, 0.0, 1.0);
}
"#;
let fragment_shader_src = r#"
out vec4 color;
void main() {
color = vec4(1.0, 0.0, 0.0, 1.0);
}
"#;Should be changed to include #version 140 :
let vertex_shader_src = r#"
#version 140
in vec2 position;
void main() {
gl_Position = vec4(position, 0.0, 1.0);
}
"#;
let fragment_shader_src = r#"
#version 140
out vec4 color;
void main() {
color = vec4(1.0, 0.0, 0.0, 1.0);
}
"#;Metadata
Metadata
Assignees
Labels
No labels