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); } }
public abstract void VertexShader(ref OutVertex outVertex, InVertex inVertex, Uniforms uniforms);