Skip to content

Commit

Permalink
Adjust skybox fog
Browse files Browse the repository at this point in the history
Now that we no longer need the fade-to-black trick to cover up stencil shadow artifacts at the bottom of the skybox, just use fog color below the skybox image.
  • Loading branch information
past-due committed Mar 3, 2024
1 parent 3fdefb7 commit f5e8854
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions data/base/shaders/skybox.vert
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ void main()

if(fog_enabled > 0)
{
fog =
vertex.y < -0.7 ? vec4(0, 0, 0, 1) :
vertex.y < 0.5 ? fog_color :
vec4(fog_color.xyz, 0);
fog = vertex.y < 0.5 ? fog_color : vec4(fog_color.xyz, 0);
}
}
5 changes: 1 addition & 4 deletions data/base/shaders/vk/skybox.vert
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ void main()

if(fog_enabled > 0)
{
fog =
vertex.y < -0.7 ? vec4(0, 0, 0, 1) :
vertex.y < 0.5 ? fog_color :
vec4(fog_color.xyz, 0);
fog = vertex.y < 0.5 ? fog_color : vec4(fog_color.xyz, 0);
}
}

0 comments on commit f5e8854

Please sign in to comment.