npm

Join us for the upcoming webinar, "Enterprise JavaScript done right: the tools you love, the security you need."Sign up here »

rollup-plugin-glslify

1.1.2 • Public • Published

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({ basedir: 'src/shaders' })
    ]
};

Options

glslify(options)
{
    // Default
    include: [
        '**/*.vs',
        '**/*.fs',
        '**/*.vert',
        '**/*.frag',
        '**/*.glsl'
    ],
 
    // Undefined by default
    exclude: 'node_modules/**'
}

glslify API options

Changelog

License

Released under the MIT license.

install

npm i rollup-plugin-glslify

Downloadsweekly downloads

55

version

1.1.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability