mod_geo-tp/src/shader.frag

14 lines
252 B
GLSL
Raw Normal View History

varying vec3 frag_col;
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);
else
2021-10-03 00:11:29 +02:00
// gl_FragColor = vec4(frag_col, alpha);
gl_FragColor = vec4(.5, .5, .5, alpha);
}