Skip to content

Commit

Permalink
Reduced sky brightness
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan-Greve committed Feb 24, 2024
1 parent 2a19139 commit 27acaee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions SourceFiles/SkyPixelShader.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ float4 main(PixelInputType input) : SV_TARGET
if (use_sky_background)
{
float4 sampledTextureColor = shaderTextures[0].Sample(ss, input.tex_coords0);
final_color.rgb = sampledTextureColor.rgb * 1.4;
final_color.rgb = sampledTextureColor.rgb * 1.1;
}

if (use_clouds_0)
Expand All @@ -108,7 +108,7 @@ float4 main(PixelInputType input) : SV_TARGET
float v = input.tex_coords0.y;

float4 sampledTextureColor = shaderTextures[1].Sample(ss, float2(u, v));
final_color.rgb += sampledTextureColor.rgb * sampledTextureColor.a;
final_color.rgb += saturate(sampledTextureColor.rgb) * sampledTextureColor.a;
}

if (use_clouds_1)
Expand All @@ -117,7 +117,7 @@ float4 main(PixelInputType input) : SV_TARGET
float v = input.tex_coords0.y;

float4 sampledTextureColor = shaderTextures[2].Sample(ss, float2(u, v));
final_color.rgb += sampledTextureColor.rgb * sampledTextureColor.a;
final_color.rgb += saturate(sampledTextureColor.rgb) * sampledTextureColor.a;
}

//if (use_sun)
Expand Down
6 changes: 3 additions & 3 deletions SourceFiles/SkyPixelShader.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ float4 main(PixelInputType input) : SV_TARGET
if (use_sky_background)
{
float4 sampledTextureColor = shaderTextures[0].Sample(ss, input.tex_coords0);
final_color.rgb = sampledTextureColor.rgb * 1.4;
final_color.rgb = sampledTextureColor.rgb * 1.1;
}

if (use_clouds_0)
Expand All @@ -103,7 +103,7 @@ float4 main(PixelInputType input) : SV_TARGET
float v = input.tex_coords0.y;

float4 sampledTextureColor = shaderTextures[1].Sample(ss, float2(u, v));
final_color.rgb += sampledTextureColor.rgb * sampledTextureColor.a;
final_color.rgb += saturate(sampledTextureColor.rgb) * sampledTextureColor.a;
}

if (use_clouds_1)
Expand All @@ -112,7 +112,7 @@ float4 main(PixelInputType input) : SV_TARGET
float v = input.tex_coords0.y;

float4 sampledTextureColor = shaderTextures[2].Sample(ss, float2(u, v));
final_color.rgb += sampledTextureColor.rgb * sampledTextureColor.a;
final_color.rgb += saturate(sampledTextureColor.rgb) * sampledTextureColor.a;
}

//if (use_sun)
Expand Down

0 comments on commit 27acaee

Please sign in to comment.