init
This commit is contained in:
commit
2fe6ca2f65
1473 changed files with 251771 additions and 0 deletions
17
gamedata/shaders/d3d11/stub_screen_space.vs.hlsl
Normal file
17
gamedata/shaders/d3d11/stub_screen_space.vs.hlsl
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#include "common.hlsli"
|
||||
|
||||
// Vertex
|
||||
uniform float4 screen_res;
|
||||
|
||||
p_shadow main(v2p_screen I)
|
||||
{
|
||||
p_shadow O;
|
||||
// Transform to screen space (in d3d9 it was done automatically)
|
||||
O.hpos.x = (I.HPos.x * screen_res.z * 2 - 1);
|
||||
O.hpos.y = -(I.HPos.y * screen_res.w * 2 - 1);
|
||||
O.hpos.zw = I.HPos.zw;
|
||||
|
||||
O.tc0 = I.tc0;
|
||||
|
||||
return O;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue