add game&rawdata
This commit is contained in:
parent
0133cd976c
commit
49b34b5546
45731 changed files with 709831 additions and 0 deletions
17
gamedata/shaders/r1/fxaa_luma.ps.hlsl
Normal file
17
gamedata/shaders/r1/fxaa_luma.ps.hlsl
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#include "common.hlsli"
|
||||
|
||||
#define LUMINANCE_VECTOR float3(0.3f, 0.38f, 0.22f)
|
||||
|
||||
uniform sampler2D s_image;
|
||||
|
||||
struct v2p
|
||||
{
|
||||
float2 tc0 : TEXCOORD0;
|
||||
float4 HPos : POSITION;
|
||||
};
|
||||
|
||||
float4 main(v2p I) : COLOR
|
||||
{
|
||||
float3 image = tex2D(s_image, I.tc0);
|
||||
return float4(image, dot(image, LUMINANCE_VECTOR));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue