diff options
author | Tyler Murphy <tylermurphy534@gmail.com> | 2023-01-19 14:34:13 -0500 |
---|---|---|
committer | Tyler Murphy <tylermurphy534@gmail.com> | 2023-01-19 14:34:13 -0500 |
commit | 56ad7214c6c5e06f71ae9f1eb24b864e47a865fe (patch) | |
tree | ca53e486e1e59a2293ef05bddc749630fe3df62e | |
parent | changes (diff) | |
download | webgl-56ad7214c6c5e06f71ae9f1eb24b864e47a865fe.tar.gz webgl-56ad7214c6c5e06f71ae9f1eb24b864e47a865fe.tar.bz2 webgl-56ad7214c6c5e06f71ae9f1eb24b864e47a865fe.zip |
rename
-rw-r--r-- | public/cube.js (renamed from public/test.js) | 0 | ||||
-rw-r--r-- | public/index.html | 2 | ||||
-rw-r--r-- | public/shader/simple.frag | 7 | ||||
-rw-r--r-- | public/shader/simple.vert | 15 |
4 files changed, 1 insertions, 23 deletions
diff --git a/public/test.js b/public/cube.js index 631591d..631591d 100644 --- a/public/test.js +++ b/public/cube.js diff --git a/public/index.html b/public/index.html index b5cc309..3f6b5e5 100644 --- a/public/index.html +++ b/public/index.html @@ -6,6 +6,6 @@ <script type="module" src="gl/gl.js"></script> </head> <body> - <script type="module" src="test.js"></script> + <script type="module" src="cube.js"></script> </body> </html>
\ No newline at end of file diff --git a/public/shader/simple.frag b/public/shader/simple.frag deleted file mode 100644 index d23373f..0000000 --- a/public/shader/simple.frag +++ /dev/null @@ -1,7 +0,0 @@ -precision mediump float; - -varying vec3 color_pass; - -void main() { - gl_FragColor = vec4(color_pass, 1.0); -}
\ No newline at end of file diff --git a/public/shader/simple.vert b/public/shader/simple.vert deleted file mode 100644 index 09db32e..0000000 --- a/public/shader/simple.vert +++ /dev/null @@ -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); -}
\ No newline at end of file |