This commit is contained in:
Tyler Murphy 2023-01-19 14:34:13 -05:00
parent f70007d58b
commit 56ad7214c6
4 changed files with 1 additions and 23 deletions

View file

@ -6,6 +6,6 @@
<script type="module" src="gl/gl.js"></script> <script type="module" src="gl/gl.js"></script>
</head> </head>
<body> <body>
<script type="module" src="test.js"></script> <script type="module" src="cube.js"></script>
</body> </body>
</html> </html>

View file

@ -1,7 +0,0 @@
precision mediump float;
varying vec3 color_pass;
void main() {
gl_FragColor = vec4(color_pass, 1.0);
}

View file

@ -1,15 +0,0 @@
precision mediump float;
attribute vec3 position;
attribute vec3 color;
uniform mat4 proj;
uniform mat4 view;
uniform mat4 tran;
varying vec3 color_pass;
void main() {
color_pass = color;
gl_Position = proj * view * tran * vec4(position, 1.0);
}