summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/webgl/WebGLheader.html
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/webgl/WebGLheader.html')
-rw-r--r--Build/source/utils/asymptote/webgl/WebGLheader.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/webgl/WebGLheader.html b/Build/source/utils/asymptote/webgl/WebGLheader.html
new file mode 100644
index 00000000000..25722241af6
--- /dev/null
+++ b/Build/source/utils/asymptote/webgl/WebGLheader.html
@@ -0,0 +1,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">