add game&rawdata
This commit is contained in:
parent
0133cd976c
commit
49b34b5546
45731 changed files with 709831 additions and 0 deletions
27
gamedata/shaders/r2/avg4.ps
Normal file
27
gamedata/shaders/r2/avg4.ps
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#include "common.h"
|
||||
|
||||
struct v2p
|
||||
{
|
||||
half2 tc0: TEXCOORD0; // base
|
||||
half2 tc1: TEXCOORD1; // base
|
||||
half2 tc2: TEXCOORD2; // base
|
||||
half2 tc3: TEXCOORD3; // base
|
||||
};
|
||||
|
||||
uniform sampler2D s_base0;
|
||||
uniform sampler2D s_base1;
|
||||
uniform sampler2D s_base2;
|
||||
uniform sampler2D s_base3;
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Pixel
|
||||
half4 main_ps_1_1 ( v2p I ) : COLOR
|
||||
{
|
||||
half4 t_0 = tex2D (s_base0,I.tc0);
|
||||
half4 t_1 = tex2D (s_base1,I.tc1);
|
||||
half4 t_2 = tex2D (s_base2,I.tc2);
|
||||
half4 t_3 = tex2D (s_base3,I.tc3);
|
||||
|
||||
// out
|
||||
return ((t_0+t_1)*.5 + (t_2+t_3)*.5)*.5;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue