Skip to content

Commit 7f35365

Browse files
InTheBottlegithub-actions[bot]
authored andcommitted
fix(terrain-blending): transparent terrain (#2550)
(cherry picked from commit 7f95ccc)
1 parent 0c5057e commit 7f35365

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package/Shaders/Lighting.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3381,7 +3381,7 @@ PS_OUTPUT main(PS_INPUT input, bool frontFace : SV_IsFrontFace)
33813381

33823382
// Stored as 1 - vertexAO so the cleared default (0) means no occlusion
33833383
// for pixels that do not write to this RT (sky, water, grass, effects).
3384-
psout.Masks2 = float4(1.0 - vertexAO, 0, 0, 0);
3384+
psout.Masks2 = float4(1.0 - vertexAO, 0, 0, psout.Diffuse.w);
33853385

33863386
float stochasticBlend = (screenNoise * screenNoise) < psout.Diffuse.w ? 1.0 : 0.0;
33873387
psout.NormalGlossiness.w = stochasticBlend;

0 commit comments

Comments
 (0)