Last active
December 7, 2018 02:37
-
-
Save baobao/0d61b7b2a1927c3ad7f948fee961c238 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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