Skip to content

Commit 4822f2e

Browse files
authored
Improve blending of Gaussians with skybox / external objects (#189)
2 parents 2f371e1 + 084dbb8 commit 4822f2e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

package/Shaders/GaussianComposite.shader

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ 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+
return float4(GammaToLinearSpace(col.rgb/col.a),col.a);
4139
}
4240
ENDCG
4341
}

0 commit comments

Comments
 (0)