mirror of
https://github.com/celisej567/cool-source-archive.git
synced 2026-09-09 20:09:18 +03:00
26 lines
426 B
Plaintext
26 lines
426 B
Plaintext
#include "common_vs_fxc.h"
|
|
#include "common_cbuffers_fxc.h"
|
|
|
|
CBUFFER_PERMODEL(register(b0))
|
|
CBUFFER_PERFRAME(register(b1))
|
|
CBUFFER_PERSCENE(register(b2))
|
|
|
|
struct VS_INPUT
|
|
{
|
|
float4 vPos : POSITION;
|
|
};
|
|
|
|
struct VS_OUTPUT
|
|
{
|
|
float4 vProjPos : SV_POSITION;
|
|
};
|
|
|
|
|
|
VS_OUTPUT main( const VS_INPUT v )
|
|
{
|
|
VS_OUTPUT o = ( VS_OUTPUT )0;
|
|
|
|
o.vProjPos = ComputeProjPos( v.vPos.xyz, cModelMatrix, cViewMatrix, cProjMatrix );
|
|
|
|
return o;
|
|
} |