rollup-plugin-glsl

1.3.0 • Public • Published

rollup-plugin-glsl Build Status

Converts GLSL shader source files to modules

import fragmentShaderSource from './fragment.glsl';
console.log(`Fragment shader source: ${fragmentShaderSource}`);

Installation

npm i rollup-plugin-glsl -D

Usage

import { rollup } from 'rollup';
import glsl from 'rollup-plugin-glsl';
 
rollup({
    entry: 'main.js',
    plugins: [
        glsl({
            // By default, everything gets included
            include: 'lib/**/*.glsl',
 
            // Undefined by default
            exclude: ['**/index.html'],
 
            // Source maps are on by default
            sourceMap: false
        })
    ]
});

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.3.0
    542
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.3.0
    542
  • 1.2.0
    1
  • 1.1.0
    2
  • 1.0.0
    0

Package Sidebar

Install

npm i rollup-plugin-glsl

Weekly Downloads

437

Version

1.3.0

License

MIT

Unpacked Size

5.87 kB

Total Files

5

Last publish

Collaborators

  • vwochnik