MESH_VERTEX_SHADER

Constant MESH_VERTEX_SHADER 

Source
pub const MESH_VERTEX_SHADER: &str = r#"
#version 450

layout(location = 0) in vec3 position;
layout(location = 1) in vec3 normal;
layout(location = 2) in vec3 color;

layout(set = 0, binding = 0) uniform Uniforms {
    mat4 view_proj;
    mat4 model;
    vec3 light_dir;
};

layout(location = 0) out vec3 v_color;
layout(location = 1) out vec3 v_normal;

void main() {
    gl_Position = view_proj * model * vec4(position, 1.0);
    v_color = color;
    v_normal = normal;
}
"#;
Expand description

Vertex shader for mesh rendering