14 lines
249 B
GLSL
14 lines
249 B
GLSL
|
varying vec3 frag_col;
|
||
|
|
||
|
uniform vec3 wf_col;
|
||
|
uniform bool wireframe;
|
||
|
uniform float alpha;
|
||
|
|
||
|
void main() {
|
||
|
if (!wireframe)
|
||
|
// gl_FragColor = vec4(wf_col, alpha);
|
||
|
gl_FragColor = vec4(.5, .5, .5, 1);
|
||
|
else
|
||
|
gl_FragColor = vec4(frag_col, alpha);
|
||
|
}
|