Skip to content

Commit

Permalink
alpha cutout fix, undefined TexProjDiffuseSampler fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Exist authored and Exist committed May 31, 2024
1 parent 2ab3a9d commit 003f131
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package/Shaders/Lighting.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -1519,7 +1519,7 @@ PS_OUTPUT main(PS_INPUT input, bool frontFace
# if defined(SNOW)
psout.SnowParameters.y = 1;
# endif // SNOW
# else
# elif !defined(FACEGEN) && !defined(PARALLAX) && !defined(SPARKLE)
if (ProjectedUVParams3.w > 0.5) {
float2 projNormalUv = ProjectedUVParams3.x * projNoiseUv;
float3 projNormal = TransformNormal(TexProjNormalSampler.Sample(SampProjNormalSampler, projNormalUv).xyz);
Expand Down Expand Up @@ -2360,8 +2360,8 @@ PS_OUTPUT main(PS_INPUT input, bool frontFace
psout.Albedo.w = 0;
# else
float alpha = baseColor.w;
# if defined (CPM_AVAILABLE)
//alpha = TexColorSampler.Sample(SampColorSampler, uvOriginal).w;
# if defined(CPM_AVAILABLE) && defined(DO_ALPHA_TEST)
alpha = TexColorSampler.Sample(SampColorSampler, uvOriginal).w;
# endif
# if !defined(ADDITIONAL_ALPHA_MASK)
alpha *= MaterialData.z;
Expand Down

0 comments on commit 003f131

Please sign in to comment.