diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2020-07-06 07:17:09 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2020-07-06 07:17:09 +0200 |
| commit | 29339928d7a05ca11786885643631206a978655e (patch) | |
| tree | b8c9f69f807a2002e2ac7649e48734b1c38bea8c /resources/shaders/square.glsl | |
| parent | e29a9115d185d0b752868a36c8d56f6020bc4134 (diff) | |
Cleaning code
Diffstat (limited to 'resources/shaders/square.glsl')
| -rw-r--r-- | resources/shaders/square.glsl | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/resources/shaders/square.glsl b/resources/shaders/square.glsl deleted file mode 100644 index 200215c..0000000 --- a/resources/shaders/square.glsl +++ /dev/null @@ -1,29 +0,0 @@ -// ----- Vertex Shader ----- -#version 330 core - -layout(location = 0) in vec3 position; -uniform mat4 projection; -uniform mat4 model; - - -void main(){ - - gl_Position = projection * model * vec4(position,1); - -} - -// ----- Fragment Shader ----- - -#version 330 core - -uniform vec2 resolution; -uniform float time; - -out vec3 color; - -void main(){ - vec2 coord=gl_FragCoord.xy/resolution; - coord-=0.5; - float d=length(coord); - color=vec3(d,1,1); -} |
