Skip to content

Commit

Permalink
improved bloom temporal stability
Browse files Browse the repository at this point in the history
  • Loading branch information
GimleLarpes authored and Mortalitas committed Jun 20, 2024
1 parent e5d5b85 commit 6bd95fb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Shaders/pCamera.fx
Original file line number Diff line number Diff line change
Expand Up @@ -639,35 +639,35 @@ float3 HighPassFilter(vs2ps o) : COLOR
//Downsample
float3 BloomDownS1(vs2ps o) : COLOR
{
return BoxSample(spBloomTex0, o.texcoord.xy, 1.0);
return BoxSample(spBloomTex0, o.texcoord.xy, 0.85);
}
float3 BloomDownS2(vs2ps o) : COLOR
{
return BoxSample(spBloomTex1, o.texcoord.xy, 1.0);
return BoxSample(spBloomTex1, o.texcoord.xy, 0.85);
}
float3 BloomDownS3(vs2ps o) : COLOR
{
return BoxSample(spBloomTex2, o.texcoord.xy, 1.0);
return BoxSample(spBloomTex2, o.texcoord.xy, 0.85);
}
float3 BloomDownS4(vs2ps o) : COLOR
{
return BoxSample(spBloomTex3, o.texcoord.xy, 1.0);
return BoxSample(spBloomTex3, o.texcoord.xy, 0.85);
}
float3 BloomDownS5(vs2ps o) : COLOR
{
return BoxSample(spBloomTex4, o.texcoord.xy, 1.0);
return BoxSample(spBloomTex4, o.texcoord.xy, 0.85);
}
float3 BloomDownS6(vs2ps o) : COLOR
{
return BoxSample(spBloomTex5, o.texcoord.xy, 1.0);
return BoxSample(spBloomTex5, o.texcoord.xy, 0.85);
}
float3 BloomDownS7(vs2ps o) : COLOR
{
return BoxSample(spBloomTex6, o.texcoord.xy, 1.0);
return BoxSample(spBloomTex6, o.texcoord.xy, 0.85);
}
float3 BloomDownS8(vs2ps o) : COLOR
{
return BoxSample(spBloomTex7, o.texcoord.xy, 1.0);
return BoxSample(spBloomTex7, o.texcoord.xy, 0.85);
}
//Upsample
float3 BloomUpS7(vs2ps o) : COLOR
Expand Down

0 comments on commit 6bd95fb

Please sign in to comment.