2021-11-12 17:08:19 +01:00
|
|
|
varying vec3 frag_col;
|
|
|
|
|
2021-10-03 11:48:28 +02:00
|
|
|
uniform vec3 col;
|
2021-10-02 22:51:20 +02:00
|
|
|
uniform vec3 wf_col;
|
|
|
|
uniform bool wireframe;
|
|
|
|
uniform float alpha;
|
|
|
|
|
|
|
|
void main() {
|
2021-10-03 00:11:29 +02:00
|
|
|
if (wireframe)
|
|
|
|
gl_FragColor = vec4(wf_col, alpha);
|
2021-10-02 22:51:20 +02:00
|
|
|
else
|
2021-11-12 17:08:19 +01:00
|
|
|
gl_FragColor = vec4(frag_col, alpha);
|
2021-10-02 22:51:20 +02:00
|
|
|
}
|