add game&rawdata
This commit is contained in:
parent
0133cd976c
commit
49b34b5546
45731 changed files with 709831 additions and 0 deletions
31
gamedata/shaders/r1/sky.vs.hlsl
Normal file
31
gamedata/shaders/r1/sky.vs.hlsl
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#include "common.hlsli"
|
||||
|
||||
struct vi
|
||||
{
|
||||
float4 p : POSITION;
|
||||
float4 c : COLOR0;
|
||||
float3 tc0 : TEXCOORD0;
|
||||
float3 tc1 : TEXCOORD1;
|
||||
};
|
||||
|
||||
struct vf
|
||||
{
|
||||
float4 hpos : POSITION;
|
||||
float4 c : COLOR0;
|
||||
float3 tc0 : TEXCOORD0;
|
||||
float3 tc1 : TEXCOORD1;
|
||||
};
|
||||
|
||||
vf main(vi v)
|
||||
{
|
||||
vf o;
|
||||
|
||||
float4 tpos = mul(1000, v.p);
|
||||
o.hpos = mul(m_WVP, tpos); // xform, input in world coords, 1000 - magic number
|
||||
o.hpos.z = o.hpos.w;
|
||||
o.c = v.c; // copy color
|
||||
o.tc0 = v.tc0; // copy tc
|
||||
o.tc1 = v.tc1; // copy tc
|
||||
|
||||
return o;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue