FRAG_SHADER_PREFIX

Constant FRAG_SHADER_PREFIX 

Source
pub const FRAG_SHADER_PREFIX: &str = "@group(0) @binding(0)\r\nvar t_diffuse: texture_2d<f32>;\r\n@group(0)@binding(1)\r\nvar s_diffuse: sampler;\r\n\r\n// Vertex shader\r\n\r\nstruct VertexInput {\r\n    @location(0) position: vec3<f32>,\r\n    @location(1) tex_coords: vec2<f32>,\r\n    @location(2) color: vec4<f32>,\r\n}\r\n\r\nstruct VertexOutput {\r\n    @builtin(position) clip_position: vec4<f32>,\r\n    @location(0) tex_coords: vec2<f32>,\r\n    @location(1) color: vec4<f32>,\r\n    @location(2) world_position: vec3<f32>,\r\n}\r\n\r\n@vertex\r\nfn vs_main(\r\n    model: VertexInput,\r\n) -> VertexOutput {\r\n    var out: VertexOutput;\r\n\r\n    out.tex_coords = model.tex_coords;\r\n    out.clip_position = camera.view_proj * vec4<f32>(model.position, 1.0);\r\n    out.color = model.color;\r\n    out.world_position = model.position;\r\n\r\n    return out;\r\n}\r\n\r\n";