From 455b407d32572e7192f8d3c16b8179737ab74f7d Mon Sep 17 00:00:00 2001 From: zhiyiz Date: Fri, 20 Sep 2024 17:38:49 -0400 Subject: [PATCH 1/3] basic fireball --- dist/index.html | 2 +- package-lock.json | 4101 +++++++++++++++++++++++++++- package.json | 5 +- src/geometry/Cube.ts | 92 + src/geometry/Icosphere.ts | 179 ++ src/geometry/Square.ts | 17 +- src/main.ts | 169 +- src/rendering/gl/Drawable.ts | 15 + src/rendering/gl/OpenGLRenderer.ts | 35 +- src/rendering/gl/ShaderProgram.ts | 72 +- src/shaders/collapse-vert.glsl | 75 + src/shaders/custom-frag.glsl | 146 + src/shaders/distort-vert.glsl | 126 + src/shaders/expand-vert.glsl | 69 + src/shaders/fireball-frag.glsl | 170 ++ src/shaders/fireball-vert.glsl | 173 ++ src/shaders/lambert-frag.glsl | 43 + src/shaders/lambert-vert.glsl | 55 + src/shaders/perlin-frag.glsl | 106 + src/shaders/worley-frag.glsl | 97 + 20 files changed, 5647 insertions(+), 100 deletions(-) create mode 100644 src/geometry/Cube.ts create mode 100644 src/geometry/Icosphere.ts create mode 100644 src/shaders/collapse-vert.glsl create mode 100644 src/shaders/custom-frag.glsl create mode 100644 src/shaders/distort-vert.glsl create mode 100644 src/shaders/expand-vert.glsl create mode 100644 src/shaders/fireball-frag.glsl create mode 100644 src/shaders/fireball-vert.glsl create mode 100644 src/shaders/lambert-frag.glsl create mode 100644 src/shaders/lambert-vert.glsl create mode 100644 src/shaders/perlin-frag.glsl create mode 100644 src/shaders/worley-frag.glsl diff --git a/dist/index.html b/dist/index.html index 062fed2f..e01a7500 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1,7 +1,7 @@ - Project 0: Getting Started | CIS 566 + Project 1: Fireball | CIS 566