Skip to content

Instantly share code, notes, and snippets.

@baobao
Last active December 7, 2018 02:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baobao/0d61b7b2a1927c3ad7f948fee961c238 to your computer and use it in GitHub Desktop.
Save baobao/0d61b7b2a1927c3ad7f948fee961c238 to your computer and use it in GitHub Desktop.
matrix RotateMatrix;
// VPMatrixを受け取れるように定義
matrix VPMatrix;
VertexData MyVertexShader(VertexData input)
{
input.position = mul(
// 回転後の座標をVPMatrixで座標変換する
mul(input.position, RotateMatrix), VPMatrix);
return input;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment