diff --git a/assets/voxygen/shaders/clouds-frag.glsl b/assets/voxygen/shaders/clouds-frag.glsl index 4dfab09149..f658a18a6a 100644 --- a/assets/voxygen/shaders/clouds-frag.glsl +++ b/assets/voxygen/shaders/clouds-frag.glsl @@ -89,6 +89,17 @@ void main() { tgt_color = vec4(vec3(mat.xyz) / 255.0, 1); return; #endif + #ifdef EXPERIMENTAL_VIEWMATERIALS + const vec3 mat_colors[5] = vec3[]( + vec3(0, 1, 1), // MAT_SKY + vec3(1, 1, 0), // MAT_BLOCK + vec3(0, 0, 1), // MAT_FLUID + vec3(1, 0, 1), // MAT_FIGURE + vec3(0.5, 1, 0) // MAT_LOD + ); + tgt_color = vec4(mat_colors[mat.a % 5u], 1); + return; + #endif #ifdef EXPERIMENTAL_BAREMINIMUM tgt_color = vec4(color.rgb, 1); diff --git a/voxygen/src/render/mod.rs b/voxygen/src/render/mod.rs index 24b512f083..75ec959f4a 100644 --- a/voxygen/src/render/mod.rs +++ b/voxygen/src/render/mod.rs @@ -527,6 +527,8 @@ pub enum ExperimentalShader { NoRainbows, /// Add extra detailing to puddles. PuddleDetails, - /// Show the normal buffers. + /// Show gbuffer surface normals. ViewNormals, + /// Show gbuffer materials. + ViewMaterials, }