transparent-cube

Minimal cross-platform native/wasm graphics example.
git clone git://git.amin.space/transparent-cube.git
Log | Files | Refs | README | LICENSE

cube_f.glsl (154B)


      1 #version 300 es
      2 
      3 precision highp float;
      4 
      5 uniform float alpha;
      6 
      7 in vec3 color;
      8 
      9 out vec4 frag_color;
     10 
     11 void main()
     12 {
     13     frag_color = vec4(color, alpha);
     14 }