Skip to content

Commit

Permalink
fix outlines drawing on sky textures
Browse files Browse the repository at this point in the history
  • Loading branch information
krizej committed Aug 9, 2023
1 parent 8844ef0 commit 7ac5082
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/glsl/draw_world.fragment.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ void main()
int turbType;

#ifdef DRAW_GEOMETRY
normal_texture = vec4(Normal, abs(UnClipped.z / r_zFar)); // rgb = normal, a = depth
// depth of 0 means dont draw outlines
float depth = (Flags & TEXTURE_TURB_SKY) != 0 ? 0.0f : abs(UnClipped.z / r_zFar);
normal_texture = vec4(Normal, depth);
#endif

if (draw_outlines == 1) {
Expand Down

0 comments on commit 7ac5082

Please sign in to comment.