Skip to content

Interop

The library does scan the shader source code for annotation comments and allows to expose renamed uniform and vertex inputs. This allows you to have different conventions for shader and javascript code or to integrate a any shader without doing a full refactor on it.

To rename a vertex input vPosition to position do

glsl
// @alias position
in vec3 vPosition;

Released under the MIT License.