public override Color CallFragmentStage(ref Vertex vertex) { return(vertex.color * mainColor * Tex2D(mainTexture, vertex.uv.x, vertex.uv.y)); }
public override Vector4 CallVertexStage(ref Vertex vertex) { return(currentMVP * vertex.pos); }
public override Vector4 CallVertexStage(ref Vertex vertex) { TransformTex(ref vertex.uv); return(currentMVP * vertex.pos); }