ChronosGL

A simple WebGL2 engine written in Dart

Features:

  • MIT licensed
  • straight-forward API
  • lightweight (close to "baremetal")
  • fully based on WebGL2 and GLSL 3.00es
  • keyboard and mouse event capture
  • support for canvas based textures including skybox
  • focus on procedural content generation
  • optional basic scenegraph
  • importer for several file formats
  • bone animations
  • few dependencies

Code

Examples

Usage

You must use Dartium (Version 50 or later) and Dart SDK (Version 1.24.0 or later)

Create a new Dart webapp project, add this as a pubspec.yaml dependency: dependencies: chronosgl: any

You also need the vector_math library which is the only library that ChronosGL is dependent on.

Copy the example from above and run it in Dartium.

It should look like this:

If you need dart:html, it is recommended to add dart:html as HTML like this, due to a naming conflict regarding Node: import 'dart:html' as HTML;

Libraries

chronosgl