Skip to content

Commit

Permalink
Fix non-overworld sky in lumi mode
Browse files Browse the repository at this point in the history
  • Loading branch information
spiralhalo committed Apr 12, 2021
1 parent a93201e commit 15b18a0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions assets/lumi/shaders/post/composite.frag
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ void main()

float depth_solid = texture(u_solid_depth, v_texcoord).r;
vec4 solid = texture(u_combine_solid, v_texcoord);
#if SKY_MODE != SKY_MODE_LUMI
if (depth_solid != 1.0) {
bool overworldLumiSky = false;
#if SKY_MODE == SKY_MODE_LUMI
overworldLumiSky = frx_worldFlag(FRX_WORLD_IS_OVERWORLD);
#endif
solid.rgb = ldr_tonemap3(solid.rgb * brightnessMult);
#if SKY_MODE != SKY_MODE_LUMI
if (depth_solid != 1.0 || overworldLumiSky) {
solid.rgb = ldr_tonemap3(solid.rgb * brightnessMult);
}
#endif

float depth_translucent = texture(u_translucent_depth, v_texcoord).r;
vec4 translucent = texture(u_combine_translucent, v_texcoord);
Expand Down

0 comments on commit 15b18a0

Please sign in to comment.