fragment.fs 280 B

1234567891011121314
  1. #version 430
  2. uniform mat4 projMatrix;
  3. uniform mat4 viewMatrix;
  4. in vec4 outColor;
  5. in vec2 outTex;
  6. out vec4 color;
  7. void main(void)
  8. {
  9. //color = outColor * (length(outTex - vec2(0.5, 0.5)) + 0.5);
  10. color = outColor * (max(abs(outTex.y - 0.5), abs(outTex.x - 0.5)) + 0.2);
  11. }