summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/webgl/WebGLheader.html
blob: 25722241af62cc09a54bc8366165c63d912276fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<html>

<head>
    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">

    <script id="shader-fs" type="x-shader/x-fragment">
        precision mediump float; 
        varying vec4 vColor; 
        void main(void) 
        { 
            gl_FragColor=vColor; 
        }
    </script>

    <script id="shader-vs" type="x-shader/x-vertex">
        attribute vec3 aVertexPosition; 
        attribute vec4 aVertexColor; 
        uniform mat4 uMVMatrix; 
        uniform mat4 uPMatrix; 
        varying vec4 vColor; 
        void main(void) 
        { 
            gl_Position=uPMatrix*uMVMatrix*vec4(aVertexPosition,1.0); 
            vColor=aVertexColor; 
        }
    </script>

    <script type="text/javascript" src="https://vectorgraphics.github.io/asymptote/webgl/glm-js-min-2.2.2.js"></script>
    <script type="text/javascript" src="https://vectorgraphics.github.io/asymptote/webgl/arcball-0.01.js"></script>
    <script type="text/javascript" src="https://vectorgraphics.github.io/asymptote/webgl/gl-0.01.js"></script>
    <script type="text/javascript">