This repository contains a sample BABYLON.js application.
Run the following commands from within the repository's root folder to setup the application:
npm install
Run the following commands from within the repository's root folder to run the
project using webpack-dev-server:
npm start
Then open http://localhost:9000 in your browser
Run the following commands from within the repository's root folder to build the
project using webpack:
npm run build
Every push on master triggers a build and deploy workflow. The build output is published to itch.io.
This workflow should be easily changeable to run on different triggers, e.g. creating a release or pushing a tag.
For this deployment to work, you have to create your project on itch.io beforehand.
When you use this template, create a secret ITCH_API_KEY in your repository's
secret settings. You also have to adjust your username and project name in the
workflow file.
After the build was published, you have to configure it on itch.io to run in the browser.
A demonstration of the deployment for this repository can be found at https://oktinaut.itch.io/babylon-example.
-
src/source code folder-
index.tsapplication entry point -
glsl.d.tstypescript definition file to resolve .glsl files -
Materials/folder for custom materials/shaders-
SampleMaterial.tssample custom material -
Shaders/folder containing GLSL shader code-
Sample/folder containing sample shader-
sample.fragment.glslsample fragment shader -
sample.vertex.glslsample vertex shader
-
-
-
-
-
publicfolder containing static assetsindex.htmlHTML entry point
-
distfolder containing output of build process