init
This commit is contained in:
commit
2fe6ca2f65
1473 changed files with 251771 additions and 0 deletions
27
gamedata/shaders/r2/sky.vs.hlsl
Normal file
27
gamedata/shaders/r2/sky.vs.hlsl
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#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;
|
||||
};
|
||||
|
||||
void main(in vi v, out vf o)
|
||||
{
|
||||
float4 tpos = mul(1000.0, v.p);
|
||||
o.hpos = mul(m_WVP, tpos);
|
||||
o.hpos.z = o.hpos.w;
|
||||
o.tc0 = v.tc0;
|
||||
o.tc1 = v.tc1;
|
||||
o.c = v.c;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue