Skip to content

Instantly share code, notes, and snippets.

@baobao
Last active Dec 7, 2018
Embed
What would you like to do?
// 頂点シェーダ
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