# webgl-simple

> webgl-simple

Latest version **8.0.1** (published 2018-04-12) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install webgl-simple
pnpm add webgl-simple
yarn add webgl-simple
bun add webgl-simple
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 8.0.1 |
| Published | 2018-04-12 |
| First published | 2018-02-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.4 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | David Komer |
| Maintainers | dakom |

## Links

- npm: https://www.npmjs.com/package/webgl-simple
- npm.io page: https://npm.io/package/webgl-simple

## Recent versions

- 8.0.1 (latest) — 2018-04-12
- 8.0.0 — 2018-04-09
- 7.0.0 — 2018-04-08
- 6.0.0 — 2018-04-02
- 5.1.0 — 2018-04-02
- 5.0.1 — 2018-04-01
- 5.0.0 — 2018-04-01
- 4.0.0 — 2018-04-01
- 3.0.0 — 2018-03-30
- 2.0.3 — 2018-03-30
- 2.0.2 — 2018-03-29
- 2.0.1 — 2018-03-29
- 2.0.0 — 2018-03-29
- 1.0.1 — 2018-03-24
- 1.0.0 — 2018-03-24
- … 23 more at https://npm.io/package/webgl-simple/versions

## README

[![Build Status](https://travis-ci.org/dakom/webgl-simple.svg?branch=master)](https://travis-ci.org/dakom/webgl-simple)

## WebGl-Simple

A barebones, framework-agnostic wrapper to make working with webgl a little simpler, more efficient, and fun!

This library is not an engine. Rather, it's a foundation that an optimized engine would build upon to make its own choices (e.g. culling meshes) - without wishing for different choices at this level. 

That's the goal anyway!

## Approach

The optimizations are generally only low-level things that aren't too opinionated. Specific examples include:

1. Grouping functions that always travel together (e.g. shader compilation steps)
2. Caching and memoization (e.g. uniform location lookups)
3. Preventing native switching (e.g. skipping bindBuffer if its already active, skipping switching a shader if its active, etc.)

That's the basic idea - to keep it simple and help reduce api calls where it's a definite win :)

## Usage

Since the core of the library is just a thin layer over native webgl, it can be used to render anything, just write a renderer and you're off to the races (see the [example source](example/src/app))


## In the wild

* ### [Builtin Demo](https://dakom.github.io/webgl-simple) - basic renderers test
* ### [Gltf](https://dakom.github.io/gltf-simple) - Gltf renderer

---
_Source: https://npm.io/package/webgl-simple · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
