rollup-plugin-glsl
1.3.0 • Public • Published rollup-plugin-glsl
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({
include: 'lib/**/*.glsl',
exclude: ['**/index.html'],
sourceMap: false
})
]
});
License
MIT
Package Sidebar
Install
Weekly Downloads