UNPKG

fabric

Version:

Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.

16 lines (15 loc) 387 B
//#region src/filters/shaders/brightness.ts const fragmentSource = ` precision highp float; uniform sampler2D uTexture; uniform float uBrightness; varying vec2 vTexCoord; void main() { vec4 color = texture2D(uTexture, vTexCoord); color.rgb += uBrightness; gl_FragColor = color; } `; //#endregion export { fragmentSource }; //# sourceMappingURL=brightness.mjs.map