begin test opengl ugui renderer
This commit is contained in:
parent
8610e225f7
commit
2c9b6e06fa
6 changed files with 399 additions and 0 deletions
14
opengl-ren/vertex.glsl
Normal file
14
opengl-ren/vertex.glsl
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#version 330
|
||||
|
||||
// use the input ("in") vertices from index zero
|
||||
layout(location = 0) in vec2 position;
|
||||
layout(location = 1) in vec4 color;
|
||||
|
||||
flat out vec4 out_color;
|
||||
|
||||
void main()
|
||||
{
|
||||
// simply copy teh output position
|
||||
gl_Position = vec4(position.x, position.y, 0.0f, 1.0f);
|
||||
out_color = color;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue