Constant kalast::win::FS_DEBUG_DEPTH

source ·
pub const FS_DEBUG_DEPTH: &str = "#version 410 core\r\nout vec4 frag;\r\n\r\nin VS_OUT {\r\n    vec2 coords_tex;\r\n} fs_in;\r\n\r\nuniform sampler2D map_depth;\r\n\r\nvoid main() {\r\n    /*\r\n    vec3 color = texture(map_depth, fs_in.coords_tex).rgb;\r\n    fragment = vec4(color, 1.0);\r\n    // float average = (0.2126 * color.r + 0.7152 * color.g + 0.0722 * color.b) / 3.0;\r\n    // fragment = vec4(vec3(average), 1.0);\r\n    */\r\n\r\n    float depth = texture(map_depth, fs_in.coords_tex).r;\r\n    frag = vec4(vec3(depth), 1.0);\r\n}\r\n\r\n";