Files
websperiments/standalone/goldberg-sphere/shaders/edge.frag
mikael-lovqvists-claude-agent 7c60252904 Add grid color and opacity controls
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>
2026-05-10 19:49:46 +00:00

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); }