Пример #1
0
 public override void VertexShader(ref OutVertex outVertex, InVertex inVertex, Uniforms uniforms)
 {
     if (inVertex.VertexId == 0)
     {
         outVertex.Position = new Vector4(-1, -1, 0, 1);
     }
     if (inVertex.VertexId == 1)
     {
         outVertex.Position = new Vector4(+1, -1, 0, 1);
     }
     if (inVertex.VertexId == 2)
     {
         outVertex.Position = new Vector4(-1, +1, 0, 1);
     }
 }
Пример #2
0
 public abstract void VertexShader(ref OutVertex outVertex, InVertex inVertex, Uniforms uniforms);