rollup-plugin-glslify

Import GLSL strings with glslify

Showing:

Popularity

Downloads/wk

766

GitHub Stars

34

Maintenance

Last Commit

3mos ago

Contributors

4

Package

Dependencies

2

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

rollup-plugin-glslify

NPM Package Build Status Dependencies Dev Dependencies

Import GLSL strings with glslify (a node.js-style module system for GLSL).

import frag from './shaders/frag.glsl';
console.log(frag);

Installation

npm install --save-dev rollup-plugin-glslify

Usage

// rollup.config.js
import glslify from 'rollup-plugin-glslify';

export default {
    // ...
    plugins: [
        glslify()
    ]
};

Options

glslify(options)
{
    // Default
    include: [
        '**/*.vs',
        '**/*.fs',
        '**/*.vert',
        '**/*.frag',
        '**/*.glsl'
    ],

    // Undefined by default
    exclude: 'node_modules/**',

    // Compress shader by default using logic from rollup-plugin-glsl
    compress: true
}

glslify API options

Changelog

License

Released under the MIT license.

See also

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial