init
This commit is contained in:
commit
2fe6ca2f65
1473 changed files with 251771 additions and 0 deletions
17
gamedata/shaders/d3d11/bloom_build.ps.hlsl
Normal file
17
gamedata/shaders/d3d11/bloom_build.ps.hlsl
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#include "common.hlsli"
|
||||
|
||||
uniform float4 b_params;
|
||||
|
||||
float4 main(p_build I) : SV_Target
|
||||
{
|
||||
float3 s0 = s_image.Sample(smp_rtlinear, I.Tex0.xy).xyz;
|
||||
float3 s1 = s_image.Sample(smp_rtlinear, I.Tex1.xy).xyz;
|
||||
float3 s2 = s_image.Sample(smp_rtlinear, I.Tex2.xy).xyz;
|
||||
float3 s3 = s_image.Sample(smp_rtlinear, I.Tex3.xy).xyz;
|
||||
|
||||
float3 avg = PopGamma(s0 + s1 + s2 + s3) / (2.0f * def_hdr);
|
||||
float hi = dot(avg, 1.h) - b_params.x;
|
||||
|
||||
return float4(avg, hi);
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue