Skip to content

Commit af814cb

Browse files
committed
Fix blending of Gaussians with external objects
1 parent 2f371e1 commit af814cb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

package/Shaders/GaussianComposite.shader

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@ Texture2D _GaussianSplatRT;
3535
half4 frag (v2f i) : SV_Target
3636
{
3737
half4 col = _GaussianSplatRT.Load(int3(i.vertex.xy, 0));
38-
col.rgb = GammaToLinearSpace(col.rgb);
39-
col.a = saturate(col.a * 1.5);
40-
return col;
38+
col.a = saturate(col.a);
39+
return float4(GammaToLinearSpace(col.rgb/col.a),col.a);
4140
}
4241
ENDCG
4342
}

0 commit comments

Comments
 (0)