add game&rawdata
This commit is contained in:
parent
0133cd976c
commit
49b34b5546
45731 changed files with 709831 additions and 0 deletions
25
gamedata/shaders/r1/sun2.ps
Normal file
25
gamedata/shaders/r1/sun2.ps
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#include "common.h"
|
||||
|
||||
struct v2p
|
||||
{
|
||||
half4 factor: COLOR0;
|
||||
half3 tc0: TEXCOORD0;
|
||||
half3 tc1: TEXCOORD1;
|
||||
};
|
||||
|
||||
uniform sampler2D s_sun0;
|
||||
uniform sampler2D s_sun1;
|
||||
uniform half4 color; // lerped color + alpha for alpha blend
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Pixel
|
||||
half4 main_ps_1_1 ( v2p I ) : COLOR
|
||||
{
|
||||
half3 s0 = tex2D(s_sun0,I.tc0);
|
||||
half3 s1 = tex2D(s_sun1,I.tc1);
|
||||
|
||||
|
||||
half3 sun = color*lerp(s0,s1,I.factor.w);
|
||||
|
||||
return half4 (sun,color.w);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue