diff --git a/src/main/resources/assets/flywheel/flywheel/shaders/context/world.glsl b/src/main/resources/assets/flywheel/flywheel/shaders/context/world.glsl index 138c5aca9..51afad2eb 100644 --- a/src/main/resources/assets/flywheel/flywheel/shaders/context/world.glsl +++ b/src/main/resources/assets/flywheel/flywheel/shaders/context/world.glsl @@ -25,13 +25,13 @@ void FLWFinalizeWorldPos(inout vec4 worldPos) { #use "flywheel:core/lightutil.glsl" #define ALPHA_DISCARD 0.1 -// -//#if defined(ALPHA_DISCARD) -//#if defined(GL_ARB_conservative_depth) -//layout (depth_greater) out float gl_FragDepth; -//#endif -//#endif - +// optimize discard usage +#if defined(ALPHA_DISCARD) +#if defined(GL_ARB_conservative_depth) +#extension GL_ARB_conservative_depth : enable +layout (depth_greater) out float gl_FragDepth; +#endif +#endif out vec4 fragColor; vec4 FLWBlockTexture(vec2 texCoords) {