forked from mikael-lovqvist/websperiments
Edge shader now takes u_edge_color and u_edge_opacity uniforms. Grid section added to sidebar with a color picker and opacity slider. Blending enabled around edge draw call to support sub-1 opacity. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
5 lines
149 B
GLSL
5 lines
149 B
GLSL
precision mediump float;
|
|
uniform vec3 u_edge_color;
|
|
uniform float u_edge_opacity;
|
|
void main() { gl_FragColor = vec4(u_edge_color, u_edge_opacity); }
|