Files
cool-source-archive/materialsystem/stdshadersdx11/wireframe_vs40.fxc
Totterynine 2773eae4d7 shaderapidx11
use -dxlevel 110 to use it
2021-09-22 18:56:56 +05:00

27 lines
521 B
Plaintext

#include "common_cbuffers_fxc.h"
CBUFFER_PERMODEL(register(b0)) // model matrix
CBUFFER_PERFRAME(register(b1)) // view matrix
CBUFFER_PERSCENE(register(b2)) // proj matrix
#include "common_vs_fxc.h"
struct VS_INPUT
{
float4 vPos : POSITION;
float4 vColor : COLOR;
};
struct VS_OUTPUT
{
float4 vPos : SV_POSITION;
float4 vColor : COLOR;
};
VS_OUTPUT main( VS_INPUT i )
{
VS_OUTPUT o = (VS_OUTPUT)0;
o.vPos = ComputeProjPos(i.vPos.xyz, cModelMatrix, cViewMatrix, cProjMatrix);
o.vColor = i.vColor;
return o;
}