日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

unity, GL.TexCoord or GL.Color must put before GL.Vertex!!!

發(fā)布時間:2024/4/14 42 豆豆
生活随笔 收集整理的這篇文章主要介紹了 unity, GL.TexCoord or GL.Color must put before GL.Vertex!!! 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

GL.Begin(GL.QUADS);
?? ??? ?
?? ??? ?//in unity, should use left hand rule
?? ??? ?//RU
?? ??? ?GL.TexCoord2 (1,1);//GL.TexCoord must be put before GL.Vertex!!!
   ? GL.Color(Color.red);//GL.Color must be put before GL.Vertex!!!
?? ??? ?GL.Vertex3(RU.x,RU.y,0);
?? ??? ?//RD
?? ??? ?GL.TexCoord2 (1,0);
   GL.Color(Color.green);
?? ??? ?GL.Vertex3(RD.x,RD.y,0);
?? ??? ?//LD
?? ??? ?GL.TexCoord2 (0,0);
   GL.Color(Color.blue);
?? ??? ?GL.Vertex3(LD.x,LD.y,0);
?? ??? ?//LU
?? ??? ?GL.TexCoord2 (0,1);
  ?? GL.Color(Color.yellow);
?? ??? ?GL.Vertex3(LU.x,LU.y,0);
?? ??? ?
?? ??? ?GL.End();

轉(zhuǎn)載于:https://www.cnblogs.com/wantnon/p/5421686.html

總結(jié)

以上是生活随笔為你收集整理的unity, GL.TexCoord or GL.Color must put before GL.Vertex!!!的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。