Last active
December 7, 2018 02:40
-
-
Save baobao/9f08b65b3f625e07f80ce72ccda01cff 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
// 頂点シェーダ | |
float4 MyVertexShader(float4 position : SV_Position) : SV_Position | |
{ | |
// 渡された座標をそのまま使用する | |
return position; | |
} | |
// ピクセルシェーダ | |
float4 MyPixelShader() : SV_Target | |
{ | |
// 白で描画 | |
return float4(1, 1, 1, 1); | |
} | |
technique10 MyTechnique | |
{ | |
pass MyPass | |
{ | |
SetVertexShader( CompileShader( vs_5_0, MyVertexShader() ) ); | |
SetPixelShader( CompileShader( ps_5_0, MyPixelShader() ) ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment