A small boilerplate for prototyping with WebGL.
Includes
Tasks
npm run start
Start the local server and watch for changesnpm run build
Build and minifynpm run lint
Lint your ts codenpm run three-examples
Convert three example files to es6 modules
Flags
Open the following url to enable all debug helpers.
http://localhost:8080/?gui&helpers&stats
Editor
If you use vscode you can add glsl syntax highlighting for .glsl.ts
files.
Update your preferences with this snippet.
"files.associations": {
"*.glsl.ts": "glsl"
}