mattdesl

mattdesl/glsl-inject-defines

injects a #define statement into a shader source

JavaScript
9
2
Other

glsl-inject-defines is a JavaScript utility for safely injecting `#define` statements into GLSL shader source code, ensuring they are placed after any `#version` or `#extension` directives. It is designed for developers working with WebGL or GLSL shaders who need to dynamically modify shader behavior at runtime, such as toggling features or injecting constants. The tool is particularly useful for projects using Node.js or browserify, and integrates seamlessly with glslify.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of mattdesl/glsl-inject-defines

Account's avatar
safely inject a block of tokens into a shader
Account's avatar
Converts an array of GLSL tokens to a plain source string
Account's avatar
r/w stream of glsl tokens
Account's avatar
human-readable TAP summarizer
Account's avatar
tap-producing test harness for node and browsers

Support the repos that depend on this repository

Top contributors

mattdesl's profile
mattdesl
8 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet