Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

glam

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

glam

Experimental WebGL Engine

  • 0.0.0
  • npm
  • Socket score

Version published
Weekly downloads
8K
decreased by-57.46%
Maintainers
1
Weekly downloads
 
Created
Source

Glam

This project is an experimental ES6 WebGL engine built on stack.gl. It tries to combine the small-repo / big-repo philosophies together providing an easy to use environment. The API is built to be composable with the magnificent tools on NPM, while opinionated and centralized in a way to get things done quickly.

Contribute code or thoughts?

Check this github issue out: https://github.com/glamjs/glam/issues/1

API Documentation

Available here

Example Code

import Mesh       from "glam/lib/mesh"
import Camera     from "glam/lib/camera/perspective"
import Material   from "glam/lib/material/flat"
import Scene      from "glam/lib/scene"
import Geometry   from "glam/lib/geometry"
import Bunny      from 'bunny'

var scene    = Scene()
var camera   = Camera()
var material = Material()
var geometry = Geometry( Bunny )
var mesh     = Mesh( material, geometry )

scene.add( mesh )

material.shading.color = [0.1,0.3,0.4]
mesh.transform.position[1] = -5
mesh.transform.position[2] = 0
camera.transform.position[2] = 20

scene.loop.on('update', function(e) {
	mesh.transform.euler[1] = e.elapsed * 0.001
	mesh.transform.euler[0] = e.elapsed * 0.0001
	scene.render( camera )
})

Roadmap

statusfeature
doneBasic working example with a flat material
doneBasic documentation in place
todoLive examples
todoTesting
todoNormal shading material
todoPhong shading material
todoDirectional lighting
todoAnd more

FAQs

Package last updated on 29 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc