Skip to content

Commit

Permalink
Use ARB_conservative_depth when available
Browse files Browse the repository at this point in the history
  • Loading branch information
httpdigest committed Jan 4, 2024
1 parent 42dd5f5 commit 5fd90e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions res/org/lwjgl/demo/opengl/shader/raymarching.fs.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
#version 330 core

layout (location = 0) out vec4 fragColor;
#ifdef GL_ARB_conservative_depth
#extension GL_ARB_conservative_depth : enable
layout (depth_less) out float gl_FragDepth;
#endif

uniform sampler3D tex;
uniform mat4 mvp;
Expand Down

0 comments on commit 5fd90e0

Please sign in to comment.