├── .babelrc.json ├── .env_sample ├── .eslintrc.json ├── .gitignore ├── .prettierrc ├── LICENSE ├── README.md ├── package.json ├── src ├── index.html ├── js │ ├── components │ │ └── scene.js │ ├── glsl │ │ ├── main.frag │ │ └── main.vert │ ├── index.js │ ├── managers │ │ └── LoaderManager.js │ └── utils │ │ ├── isTouch.js │ │ └── ogl.js ├── public │ └── img │ │ ├── displacement-map.jpg │ │ ├── favicon.svg │ │ ├── image-1.jpg │ │ ├── image-2.jpg │ │ └── matcap.png └── scss │ ├── components │ ├── footer.scss │ ├── scene.scss │ └── title.scss │ ├── imports │ ├── _colors.scss │ ├── _easings.scss │ ├── _fonts.scss │ ├── _media-queries.scss │ └── index.scss │ ├── includes │ ├── reset.scss │ └── root.scss │ └── style.scss └── vite.config.js /.babelrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Robpayot/vite-2d-shader-template/HEAD/.babelrc.json -------------------------------------------------------------------------------- /.env_sample: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Robpayot/vite-2d-shader-template/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Robpayot/vite-2d-shader-template/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Robpayot/vite-2d-shader-template/HEAD/.prettierrc -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Robpayot/vite-2d-shader-template/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Robpayot/vite-2d-shader-template/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Robpayot/vite-2d-shader-template/HEAD/package.json -------------------------------------------------------------------------------- /src/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Robpayot/vite-2d-shader-template/HEAD/src/index.html -------------------------------------------------------------------------------- /src/js/components/scene.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Robpayot/vite-2d-shader-template/HEAD/src/js/components/scene.js -------------------------------------------------------------------------------- /src/js/glsl/main.frag: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Robpayot/vite-2d-shader-template/HEAD/src/js/glsl/main.frag -------------------------------------------------------------------------------- /src/js/glsl/main.vert: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Robpayot/vite-2d-shader-template/HEAD/src/js/glsl/main.vert -------------------------------------------------------------------------------- /src/js/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Robpayot/vite-2d-shader-template/HEAD/src/js/index.js -------------------------------------------------------------------------------- /src/js/managers/LoaderManager.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Robpayot/vite-2d-shader-template/HEAD/src/js/managers/LoaderManager.js -------------------------------------------------------------------------------- /src/js/utils/isTouch.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Robpayot/vite-2d-shader-template/HEAD/src/js/utils/isTouch.js -------------------------------------------------------------------------------- /src/js/utils/ogl.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Robpayot/vite-2d-shader-template/HEAD/src/js/utils/ogl.js -------------------------------------------------------------------------------- /src/public/img/displacement-map.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Robpayot/vite-2d-shader-template/HEAD/src/public/img/displacement-map.jpg -------------------------------------------------------------------------------- /src/public/img/favicon.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Robpayot/vite-2d-shader-template/HEAD/src/public/img/favicon.svg -------------------------------------------------------------------------------- /src/public/img/image-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Robpayot/vite-2d-shader-template/HEAD/src/public/img/image-1.jpg -------------------------------------------------------------------------------- /src/public/img/image-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Robpayot/vite-2d-shader-template/HEAD/src/public/img/image-2.jpg -------------------------------------------------------------------------------- /src/public/img/matcap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Robpayot/vite-2d-shader-template/HEAD/src/public/img/matcap.png -------------------------------------------------------------------------------- /src/scss/components/footer.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Robpayot/vite-2d-shader-template/HEAD/src/scss/components/footer.scss -------------------------------------------------------------------------------- /src/scss/components/scene.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Robpayot/vite-2d-shader-template/HEAD/src/scss/components/scene.scss -------------------------------------------------------------------------------- /src/scss/components/title.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Robpayot/vite-2d-shader-template/HEAD/src/scss/components/title.scss -------------------------------------------------------------------------------- /src/scss/imports/_colors.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Robpayot/vite-2d-shader-template/HEAD/src/scss/imports/_colors.scss -------------------------------------------------------------------------------- /src/scss/imports/_easings.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Robpayot/vite-2d-shader-template/HEAD/src/scss/imports/_easings.scss -------------------------------------------------------------------------------- /src/scss/imports/_fonts.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Robpayot/vite-2d-shader-template/HEAD/src/scss/imports/_fonts.scss -------------------------------------------------------------------------------- /src/scss/imports/_media-queries.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Robpayot/vite-2d-shader-template/HEAD/src/scss/imports/_media-queries.scss -------------------------------------------------------------------------------- /src/scss/imports/index.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Robpayot/vite-2d-shader-template/HEAD/src/scss/imports/index.scss -------------------------------------------------------------------------------- /src/scss/includes/reset.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Robpayot/vite-2d-shader-template/HEAD/src/scss/includes/reset.scss -------------------------------------------------------------------------------- /src/scss/includes/root.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Robpayot/vite-2d-shader-template/HEAD/src/scss/includes/root.scss -------------------------------------------------------------------------------- /src/scss/style.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Robpayot/vite-2d-shader-template/HEAD/src/scss/style.scss -------------------------------------------------------------------------------- /vite.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Robpayot/vite-2d-shader-template/HEAD/vite.config.js --------------------------------------------------------------------------------