Christopher Willis-Ford 91cc797c3b Refactor ShaderManager's DRAW_MODE and effect info
Draw modes are now enabled/disabled by bitmask and can be combined.
Combining silhouette mode and color mask mode will be useful for
color-touching-color, for example.

Effect converters are now one field in a larger EFFECT_INFO map, which
also contains bitmask values for each effect. Drawable no longer makes
any assumptions regarding how ShaderManager will unpack the effect bits.

The shader cache is now an array of arrays, where the outer index is the
mask of active draw modes and the inner index is the mask of active
effects (as it was before). Effects which cannot impact the shape of a
Drawable are masked out in silhouette mode in order to avoid compiling
redundant shaders.
2016-06-09 12:17:12 -07:00
2016-06-08 09:27:01 -07:00
2016-06-08 09:27:01 -07:00
2016-05-18 12:35:08 -07:00

scratch-render-webgl

Build Status

Installation

npm install scratch-render-webgl

Setup

Standalone Build

make build
<script src="/path/to/render-webgl.js"></script>
<script>
    var renderer = new window.RenderWebGL();
    // do things
</script>

Testing

make test
make coverage
make benchmark
Description
No description provided
Readme 6.4 MiB
Languages
JavaScript 91.9%
GLSL 4.6%
HTML 3.5%