init
This commit is contained in:
commit
2fe6ca2f65
1473 changed files with 251771 additions and 0 deletions
28
gamedata/shaders/r2/effects_sun.vs.hlsl
Normal file
28
gamedata/shaders/r2/effects_sun.vs.hlsl
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#include "common.hlsli"
|
||||
|
||||
struct v_TL
|
||||
{
|
||||
float4 P : POSITION;
|
||||
float2 Tex0 : TEXCOORD0;
|
||||
float4 Color : COLOR;
|
||||
};
|
||||
|
||||
struct v2p_TL
|
||||
{
|
||||
float2 Tex0 : TEXCOORD0;
|
||||
float4 Color : COLOR;
|
||||
float4 HPos : POSITION; // Clip-space position (for rasterization)
|
||||
};
|
||||
|
||||
// Vertex
|
||||
v2p_TL main(v_TL I)
|
||||
{
|
||||
v2p_TL O;
|
||||
|
||||
O.HPos = mul(m_VP, I.P);
|
||||
O.HPos.z = O.HPos.w;
|
||||
O.Tex0 = I.Tex0;
|
||||
O.Color = I.Color;
|
||||
|
||||
return O;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue