mirror of
https://github.com/celisej567/cool-source-archive.git
synced 2026-09-09 20:09:18 +03:00
27 lines
521 B
Plaintext
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;
|
|
} |