Why my GL.Color doesn't work? - Unity Answers
文章推薦指數: 80 %
And i wanna to use a different color to draw the line, so i use GL.Color(Color.yellow), but it seems that i doesn't work at all.
延伸文章資訊
- 1Scripting API: GL - Unity
GL immediate drawing functions use whatever is the "current material" set up right now (see ... P...
- 2Unity - 使用低階圖形指令GL(Low-level graphics library ... - Verv
SetPass( 0 ); //繪製線條,每兩個點一線,請給雙數點GL.Begin( GL.LINES ); GL.Color( new Color(1.0f,1.0f,1.0f,0.5f) )...
- 3How to change wireframe color using GL in Unity? - Stack ...
After GL.wireframe=true vertex colors provide wireframe color and there are only two ways to chan...
- 4Why my GL.Color doesn't work? - Unity Answers
And i wanna to use a different color to draw the line, so i use GL.Color(Color.yellow), but it se...
- 5GL-Color - Unity 脚本API
public static void Color (Color c);. 描述. 设置当前顶点颜色。 在OpenGL 中,这与 glColor4f(c.r,c.g,c.b,c.a) 相匹配;在其...