Skip to content

Commit

Permalink
Merge branch 'forest-shading-2' of https://github.com/doodlum/skyrim-…
Browse files Browse the repository at this point in the history
…community-shaders into forest-shading-2
  • Loading branch information
doodlum committed Feb 20, 2025
2 parents b15324d + b23608c commit 8abc4ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/Shaders/Lighting.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -2452,7 +2452,7 @@ PS_OUTPUT main(PS_INPUT input, bool frontFace
// Remove AO
float maxChannel = max(max(vertexColor.r, vertexColor.g), vertexColor.b);
vertexColor = vertexColor / maxChannel;

// Brighten skylighting
vertexColor *= 1.0 + (1.0 - maxChannel) * (1.0 - Color::LinearToGamma(skylightingDiffuse));

Expand Down

0 comments on commit 8abc4ec

Please sign in to comment.