Skip to content

Sample BABYLON.js application using Typescript and Webpack

License

Notifications You must be signed in to change notification settings

jamessimo/babylonjs-typescript-starter

Repository files navigation

BABYLON.js Typescript Starter

This Repository contains a sample BABYLON.js application.

Setup

Run the following commands from within the repository's root folder to setup the application:

  1. npm install

Running

Run the following commands from within the repository's root folder to run the project using webpack-dev-server:

  1. npm start

Build

Run the following commands from within the repository's root folder to build the project using webpack:

  1. npm run build

Structure

  • src/ source code folder

    • index.ts application entry point

    • glsl.d.ts typescript definition file to resolve .glsl files

    • Materials/ folder for custom materials/shaders

      • SampleMaterial.ts sample custom material

      • Shaders/ folder containing GLSL shader code

        • Sample/ folder containing sample shader

          • sample.fragment.glsl sample fragment shader

          • sample.vertex.glsl sample vertex shader

  • public folder containing static assets

    • index.html HTML entry point
  • dist folder containing output of build process

About

Sample BABYLON.js application using Typescript and Webpack

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 81.1%
  • GLSL 12.1%
  • JavaScript 4.9%
  • Handlebars 1.7%
  • CSS 0.2%