add game&rawdata
This commit is contained in:
parent
0133cd976c
commit
49b34b5546
45731 changed files with 709831 additions and 0 deletions
23
gamedata/shaders/d3d11/hud_crosshair.vs.hlsl
Normal file
23
gamedata/shaders/d3d11/hud_crosshair.vs.hlsl
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#include "common_iostructs.hlsli"
|
||||
// #include "common.hlsli"
|
||||
|
||||
uniform float4 screen_res; // Screen resolution (x-Width,y-Height, zw - 1/resolution)
|
||||
|
||||
// Vertex
|
||||
v2p_TL0uv main(v_TL0uv_positiont I)
|
||||
{
|
||||
v2p_TL0uv O;
|
||||
|
||||
{
|
||||
I.P.xy += 0.5f;
|
||||
// O.HPos.x = I.P.x/1024 * 2 - 1;
|
||||
// O.HPos.y = (I.P.y/768 * 2 - 1)*-1;
|
||||
O.HPos.x = I.P.x * screen_res.z * 2 - 1;
|
||||
O.HPos.y = (I.P.y * screen_res.w * 2 - 1) * -1;
|
||||
O.HPos.zw = I.P.zw;
|
||||
}
|
||||
|
||||
O.Color = I.Color.bgra; // swizzle vertex colour
|
||||
|
||||
return O;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue