A simple, minimal and elegant scene graph for WebGL written in Dart
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
lib
test
tool
.gitignore
LICENSE
Makefile
Makefile.lib
README.md
analysis_options.yaml
class_glossary.md
pubspec.lock
pubspec.yaml

README.md

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;