Fix bogus naming of Shaders/Renderers. Split LineRenderer into world and chrome variants.
This commit is contained in:
4
glsl/chrome-line.frag
Normal file
4
glsl/chrome-line.frag
Normal file
@@ -0,0 +1,4 @@
|
||||
void main()
|
||||
{
|
||||
gl_FragColor = gl_Color;
|
||||
}
|
||||
7
glsl/chrome-line.vert
Normal file
7
glsl/chrome-line.vert
Normal file
@@ -0,0 +1,7 @@
|
||||
uniform vec2 r1, r2; // matrix elements
|
||||
void main()
|
||||
{
|
||||
vec2 p = gl_Vertex.xy*r1 + r2;
|
||||
gl_Position = vec4(p.x,p.y,0,1);
|
||||
gl_FrontColor = gl_MultiTexCoord0;
|
||||
}
|
||||
Reference in New Issue
Block a user