add game&rawdata
This commit is contained in:
parent
0133cd976c
commit
49b34b5546
45731 changed files with 709831 additions and 0 deletions
20
gamedata/shaders/r2/sky.ps.hlsl
Normal file
20
gamedata/shaders/r2/sky.ps.hlsl
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#include "common.hlsli"
|
||||
|
||||
struct v2p
|
||||
{
|
||||
float4 factor : COLOR0;
|
||||
float3 tc0 : TEXCOORD0;
|
||||
float3 tc1 : TEXCOORD1;
|
||||
};
|
||||
|
||||
uniform samplerCUBE s_sky0 : register(s0);
|
||||
uniform samplerCUBE s_sky1 : register(s1);
|
||||
|
||||
float4 main(v2p I) : COLOR0
|
||||
{
|
||||
float3 s0 = texCUBE(s_sky0, I.tc0);
|
||||
float3 s1 = texCUBE(s_sky1, I.tc1);
|
||||
float3 sky = L_sky_color.xyz * lerp(s0, s1, I.factor.w);
|
||||
|
||||
return sky.xyzz;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue