init
This commit is contained in:
commit
2fe6ca2f65
1473 changed files with 251771 additions and 0 deletions
21
gamedata/shaders/d3d11/bloom_luminance_1.ps.hlsl
Normal file
21
gamedata/shaders/d3d11/bloom_luminance_1.ps.hlsl
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#include "common.hlsli"
|
||||
|
||||
float luminance(float2 tc)
|
||||
{
|
||||
float3 source = s_image.Sample(smp_rtlinear, tc).xyz;
|
||||
return dot(source, LUMINANCE_VECTOR) * def_hdr;
|
||||
}
|
||||
|
||||
float4 main(p_build I) : SV_Target
|
||||
{
|
||||
float4 final;
|
||||
|
||||
final.x = luminance(I.Tex0);
|
||||
final.y = luminance(I.Tex1);
|
||||
final.z = luminance(I.Tex2);
|
||||
final.w = luminance(I.Tex3);
|
||||
|
||||
// OK
|
||||
return final;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue