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