|
|
float4x4 matViewProj;
float4x4 matView;
float4x4 matProj;
void main(float4 inPos : POSITION,
out float4 outPos : POSITION)
{
float4 pos = mul(inPos, matView);
outPos = mul(matProj, pos);
}
用的hlsl为什么outPos = mul(matProj, pos);而不是outPos = mul(pos, matProj); |
|