前田稔(Maeda Minoru)の超初心者のプログラム入門
float2 triangleVertices[] = { float2(-0.5f, -0.5f), float2( 0.0f, 0.5f), float2( 0.5f, -0.5f), }; unsigned short triangleIndices[] = { 0, 1, 2, }; |
float2 triangleVertices[] = { float2(-0.8f, -0.5f), float2( 0.0f, 0.5f), float2( 0.8f, -0.5f), }; |
float2 triangleVertices[] = { float2(-0.5f, 0.5f), float2( 0.0f, -0.5f), float2( 0.5f, 0.5f), }; unsigned short triangleIndices[] = { 0, 2, 1, }; |
return float4(1.0f, 1.0f, 0.0f, 1.0f); |
return float4(1.0f, 0.0f, 0.0f, 1.0f); |