Giter Site home page Giter Site logo

pampanelson / threejs-es6-webpack-starter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jackdbd/threejs-es6-webpack-starter

0.0 2.0 0.0 7.42 MB

A minimal three.js ES6 starter project that uses webpack.

License: MIT License

CSS 3.83% GLSL 3.94% JavaScript 83.57% HTML 8.65%

threejs-es6-webpack-starter's Introduction

three.js-es6-webpack-starter

Renovate enabled A minimal three.js ES6 starter project that uses webpack.

A GIF file showing a preview of the starter project

⚠️ If you encounter a validateschema error when running yarn dev, try downgrading webpack-cli to 2.0.0. It seems a bug that affects only webpack-dev-server. ⚠️

Features:

Installation

git clone [email protected]:jackdbd/threejs-es6-webpack-starter.git
cd threejs-es6-webpack-starter

yarn install

Usage

Generate all js/css bundles

yarn run build

Run webpack-dev-server (all bundles will be served from memory)

yarn run dev

If you have issues with old dependencies you can try to fix them by running:

yarn update:packages

Go to localhost:8080 to see your project live!

Go to localhost:8888 to analyze your webpack bundles with BundleAnalyzerPlugin

Credits

The setup of this starter project was inspired by two snippets on Codepen: this one and this one.

I understood how to work with lights and camera helpers thanks to this snippet on JSFiddle.

The script which wipes all project's npm dependencies and reinstall them from scratch was found here.

The code for vertexShader.glsl and fragmentShader.glsl is taken from this blog post.

The star used in the particle system is the PNG preview of this image by Offnfopt (Public domain or CC0, via Wikimedia Commons).

threejs-es6-webpack-starter's People

Contributors

jackdbd avatar greenkeeper[bot] avatar renovate-bot avatar classikd avatar

Watchers

James Cloos avatar WangJunKai avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.