Skip to content

Commit

Permalink
style: 🎨 apply clang-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcEarth authored and github-actions[bot] committed Oct 29, 2024
1 parent 9ac5b62 commit 810a105
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
// ExtendedTranslucency::MaterialParams
cbuffer ExtendedTranslucencyPerGeometry : register(b7)
{
uint AnisotropicAlphaFlags; // [0,1,2,3] The MaterialModel
float AnisotropicAlphaReduction; // [0, 1.0] The factor to reduce the transparency to matain the average transparency [0,1]
float AnisotropicAlphaSoftness; // [0, 2.0] The soft remap upper limit [0,2]
float AnisotropicAlphaStrength; // [0, 1.0] The inverse blend weight of the effect
uint AnisotropicAlphaFlags; // [0,1,2,3] The MaterialModel
float AnisotropicAlphaReduction; // [0, 1.0] The factor to reduce the transparency to matain the average transparency [0,1]
float AnisotropicAlphaSoftness; // [0, 2.0] The soft remap upper limit [0,2]
float AnisotropicAlphaStrength; // [0, 1.0] The inverse blend weight of the effect
};

namespace ExtendedTransclucency
Expand Down
4 changes: 2 additions & 2 deletions package/Shaders/Lighting.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -2617,7 +2617,7 @@ PS_OUTPUT main(PS_INPUT input, bool frontFace
float originalAlpha = alpha;
alpha = alpha * (1.0 - AnisotropicAlphaReduction);
if (AnisotropicAlphaFlags == _ExtendedTranslucency_MaterialModel_AnisotropicFabric) {
#if defined(SKINNED) || !defined(MODELSPACENORMALS)
# if defined(SKINNED) || !defined(MODELSPACENORMALS)
alpha = ExtendedTransclucency::GetViewDependentAlphaFabric2D(alpha, viewDirection, tbnTr);
# else
alpha = ExtendedTransclucency::GetViewDependentAlphaFabric1D(alpha, viewDirection, modelNormal.xyz);
Expand All @@ -2631,7 +2631,7 @@ PS_OUTPUT main(PS_INPUT input, bool frontFace
alpha = lerp(alpha, originalAlpha, AnisotropicAlphaStrength);
}
}
#endif // EXTENDED_TRANSLUCENCY
# endif // EXTENDED_TRANSLUCENCY

psout.Diffuse.w = alpha;

Expand Down

0 comments on commit 810a105

Please sign in to comment.