dcedd0c3cf429cbf09bb61614642270270ebe5c1
The renderer now uses premultiplied alpha in the frame buffer, though textures are still stored without premultiplied alpha. This makes it easier to get the desired results from the browser's canvas compositing step, and might be nicer for mobile hardware depending on which parts of the Internet you believe.
scratch-render-webgl
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
Languages
JavaScript
91.9%
GLSL
4.6%
HTML
3.5%