Browse Source

wip

all-shader v-1.0.0
John Doe 3 years ago
parent
commit
db8aa01d58
  1. 0
      ellipse.fs
  2. 0
      ellipse.vs
  3. 0
      line.fs
  4. 0
      line.vs
  5. 7
      mline.fs
  6. 9
      mline.vs
  7. 8
      target.fs
  8. 12
      target.vs
  9. 0
      text.fs
  10. 0
      text.vs
  11. 6
      zoomgate.fs
  12. 9
      zoomgate.vs

0
ellipse.fs

0
ellipse.vs

0
line.fs

0
line.vs

7
mline.fs

@ -0,0 +1,7 @@
#version 330 core
in vec4 color;
out vec4 FragColor;
void main() {
// FragColor = vec4(1.,1.,0., 1.0);
FragColor = color;
}

9
mline.vs

@ -0,0 +1,9 @@
#version 330 core
layout (location = 0) in vec4 vertices;
uniform vec4 ourColor;
out vec4 color;
void main()
{
color = ourColor;
gl_Position = vertices;
}

8
target.fs

@ -0,0 +1,8 @@
#version 330 core
uniform sampler2D texture;
varying vec2 vTexCoord;
varying vec3 color;
void main()
{
gl_FragColor = vec4(color.x,color.y,color.z,texture2D(texture, vTexCoord).w);
}

12
target.vs

@ -0,0 +1,12 @@
#version 330 core
attribute vec4 aPosition;
attribute vec3 aColor;
attribute vec2 aTexCoord;
varying vec2 vTexCoord;
varying vec3 color;
void main()
{
color = aColor;
gl_Position = aPosition;
vTexCoord = aTexCoord;
}

0
text.fs

0
text.vs

6
zoomgate.fs

@ -0,0 +1,6 @@
#version 330 core
in vec4 color;
out vec4 FragColor;
void main() {
FragColor = color;
}

9
zoomgate.vs

@ -0,0 +1,9 @@
#version 330 core
layout (location = 0) in vec4 vertices;
uniform vec4 ourColor;
out vec4 color;
void main()
{
color = ourColor;
gl_Position = vertices;
}
Loading…
Cancel
Save