GitXplorerGitXplorer
C

opusgl

public
15 stars
0 forks
1 issues

Commits

List of commits on branch main.
Unverified
0f5784471dadffe83c9e7be79a7b45e98ee78258

chore: cleanup config

CCodyJasonBennett committed 2 years ago
Unverified
5048620c0746e65792a83e70ede3f66dcd376f9c

chore(tests): update WebGPU polyfill

CCodyJasonBennett committed 2 years ago
Unverified
aa7e5669080691a9da5a142e457d4b406f07bdee

chore: update CDN example

CCodyJasonBennett committed 2 years ago
Unverified
2b7b700eab54fcaaab05757c2b90527c66b1dc68

chore: open dev server on localhost

CCodyJasonBennett committed 2 years ago
Unverified
b6b05a089e40c29ffa57f952bbaff0a7ff0047da

v0.0.0-alpha.1

CCodyJasonBennett committed 2 years ago
Unverified
8913a94de30379eb2be03759d0f65d2acfe3a62e

fix(WebGLRenderer): correctly handle uniform globals

CCodyJasonBennett committed 2 years ago

README

The README file for this repository.

opusgl

A minimal rendering library.

Warning: This library is a collection of years of experimental work with a playground for features and APIs fielded for three.js, react-three-fiber, OGL, and react-ogl. I do not intend to ship it in its current form, so I'm open-sourcing it as a learning resource in the meantime.

Table of Contents

Install

This assumes you already have Node installed and a build system configured. If you're just getting started, I'd recommend using Vite or Codesandbox and continuing with NPM.

via NPM

Install from NPM with:

npm install opusgl
# or, if you use Yarn
yarn add opusgl

via CDN

If you'd prefer to not use build tools and use a CDN, I'd recommend Skypack as it bundles things for you.

Make sure you specify a fixed version (opusgl@0.0.1) so your code doesn't break down the line.

<script type="module">
  import { WebGLRenderer, Geometry, Material, Mesh, Vector3, Color } from 'https://cdn.skypack.dev/opusgl'
</script>

Contributing

This project uses semantic commits and semver.

Make sure you have Node and Yarn and installed. Install dependencies with:

yarn

Development

Locally run examples against the library with:

yarn dev

Publishing

To publish a release on NPM, run the following and follow the dialog:

yarn release