init
This commit is contained in:
commit
2fe6ca2f65
1473 changed files with 251771 additions and 0 deletions
19
gamedata/shaders/r2/editor.vs.hlsl
Normal file
19
gamedata/shaders/r2/editor.vs.hlsl
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#include "common.hlsli"
|
||||
|
||||
struct vf
|
||||
{
|
||||
float4 P : POSITION;
|
||||
float4 C : COLOR0;
|
||||
};
|
||||
|
||||
uniform float4 tfactor;
|
||||
|
||||
vf main(vf i)
|
||||
{
|
||||
vf o;
|
||||
|
||||
o.P = mul(m_WVP, i.P); // xform, input in world coords
|
||||
o.C = tfactor * i.C;
|
||||
|
||||
return o;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue