Skip to content

Commit

Permalink
Merge branch 'forest-shading' of https://github.com/doodlum/skyrim-co…
Browse files Browse the repository at this point in the history
…mmunity-shaders into forest-shading
  • Loading branch information
doodlum committed Feb 18, 2025
2 parents a182442 + beac9d6 commit e77311b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion features/Skylighting/Shaders/Skylighting/Skylighting.hlsli
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace Skylighting

if (SharedData::InInterior)
return scaledUnitSH;

positionMS.xyz += normalWS * CELL_SIZE; // Receiver normal bias

if (SharedData::FrameCount) { // Check TAA
Expand Down
4 changes: 2 additions & 2 deletions package/Shaders/RunGrass.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ PS_OUTPUT main(PS_INPUT input, bool frontFace
float3 directionalAmbientColor = mul(SharedData::DirectionalAmbient, float4(normal, 1.0));

# if defined(SKYLIGHTING)
if (!SharedData::InInterior){
if (!SharedData::InInterior) {
float3 skylightingNormal = normalize(float3(normal.xy, max(0, normal.z)));

# if defined(VR)
Expand Down Expand Up @@ -837,7 +837,7 @@ PS_OUTPUT main(PS_INPUT input)
float3 directionalAmbientColor = mul(SharedData::DirectionalAmbient, float4(normal, 1.0));

# if defined(SKYLIGHTING)
if (!SharedData::InInterior){
if (!SharedData::InInterior) {
float3 skylightingNormal = normalize(float3(normal.xy, max(0, normal.z)));

# if defined(VR)
Expand Down

0 comments on commit e77311b

Please sign in to comment.