Skip to content

pex-gl/pex-renderer

v2
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 1012 commits behind main.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

pex-renderer

experimental

Phisically Based Renderer for Pex

API

Renderer(opts)

const renderer = new Renderer(ctx)
opts = Context
const renderer = new Renderer(opts)
opts = {
  ctx: Context,
  width: Number,
  height: Number,
  profile: Boolean,
  pauseOnBlur: Boolean
}

Entity

entity = renderer.entity(components)

entity.dispose()

Removes entity from the scene and diposes all the components and their resources

TODO: diposing? right now it's not recursive TODO: name in the constructor? TODO: what if e.g. material component shared a texture with another one?

Usage

NPM

License

MIT, see LICENSE.md for details.