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