renderer/opengl: Extract shaders from source (#9600)
--------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
This commit is contained in:
parent
a46576afc3
commit
7374a023ef
35 changed files with 1533 additions and 1059 deletions
14
src/render/shaders/glsl/quad.frag
Normal file
14
src/render/shaders/glsl/quad.frag
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#extension GL_ARB_shading_language_include : enable
|
||||
precision highp float;
|
||||
varying vec4 v_color;
|
||||
|
||||
#include "rounding.glsl"
|
||||
|
||||
void main() {
|
||||
vec4 pixColor = v_color;
|
||||
|
||||
if (radius > 0.0)
|
||||
pixColor = rounding(pixColor);
|
||||
|
||||
gl_FragColor = pixColor;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue